Hi All,
I have a very typical problem
We have a table e.x Customer which contains the data about the different types of customer.
Table Customer
Customer table has 100 columns
POJO Class hierarchy is
Customer(Parent)
ATypeCustomer(Child of Customer)
BTypeCustomer(Child of Customer)
The problem is
Some columns are common across both the subclasses.
Some are specific to ATypeCustomer
Some are specific to BTypeCustomer
Constraints(We can't change(Add discrimnator columns) any table in the DB as many other applications are using that db)
Flexibility we can modify our classes according our need.
So can any one help me how can I generate the hibernate mapping files for these classes.
Thanx in advance
Amit Verma
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