Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
This is my problem
I have a enumerationType class that I want to map to different tables
i.e enumerationType class is a kind of template
public class EnumType{
private int id;
private String code;
private Date createdDate;
}
Now I have classes like say TourType,EmailType,Someother type i.e look xactly like EnumType but are persisted into different tables
so basically I want to create just one class one hbm.xml file and dynamically push it into the right table so mbe I have something that says that this is a TourType push it into the TourType table......
Is this even possible.The reason I ask is its pretty redundent for me to have a class and hbm.xml file for each one of these it would be much better to just have a template class and dynamically decide where to push the data into...
Regards
Subu