Creating JPA Entities with @Inheritance JOINED [message #725103] |
Wed, 14 September 2011 00:02 |
Eclipse User |
|
|
|
I have a database with many tables in a PostgreSQL DBMS and would like to use the Eclipse IDE wizard to automatically create these tables the JPA entities. However, I would use the JOINED strategy with @Inheritance annotation in the construction of these entities. For example, I have a Person table, an Employee table and another table Customer. In the Person table, there is a column personId that is the primary key. In the Employee and Customer also exists personId columns that are primary key of their respective tables, but are linked to foreign key column of the table personId Person. I need the Wizard of Eclipse IDE to create the entities Employee and Customer table extending the Person entity, making them the @Inheritance (strategy = InheritanceType.JOINED). I can not get the Eclipse IDE Wizard to create of these entities with this feature, as it creates the Employee and Customer entities with attributes that encapsulate the Person entity.
Could someone help me?
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds