Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Creating JPA Entities with @Inheritance JOINED
Creating JPA Entities with @Inheritance JOINED [message #725103] Wed, 14 September 2011 00:02
Adriano  is currently offline Adriano Friend
Messages: 1
Registered: September 2011
Junior Member
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?
Previous Topic:auto build does not copy resource files to output folder after save
Next Topic:Setup of Environment
Goto Forum:
  


Current Time: Sat Apr 20 02:14:54 GMT 2024

Powered by FUDForum. Page generated in 0.02768 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top