Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » "Generate entities from tables" with common attributes
"Generate entities from tables" with common attributes [message #1403170] Tue, 22 July 2014 06:03 Go to next message
G M is currently offline G MFriend
Messages: 2
Registered: July 2014
Junior Member
We have several tables. All tables have several common attributes.

The common attributes are factored into a common base entity (@MappedSuperclass). When generating the entities from tables, the base entity is specified. However, eclipse still generates all entities with all attributes. The only option is to remove the common attributes from entity classes manually.

How can we get eclipse to consider the common attributes and not generate them?
Re: "Generate entities from tables" with common attributes [message #1404217 is a reply to message #1403170] Wed, 30 July 2014 13:55 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
The Entity generation tools currently do not support any kind of inheritance mapping. For now this must be a refactoring after generation.

Feel free to enter an enhancement request for this functionality -

Previous Topic:Mistaken JPA Validation Error (Luna)
Next Topic:JPA Generate Entities From Tables Fails
Goto Forum:

Current Time: Wed Nov 25 10:22:40 GMT 2015

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

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