Everyone working in hibernate surely come across dynamic table mapping problem.
Let us illustrate this problem with example.,
Suppose we want to use same mapping file and POJO file for two tables report1 and report2. These two tables schema is same. but the names of the table only differ. The technique is simple.,
Just open HBM file and modify the table value to report_2 by using SAXBuilder.
For more details refer the following in forums.hibernate.org.
http://forum.hibernate.org/viewtopic.php?t=991814
Wednesday, December 17, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment