Skip to main content

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: 3
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: Fri May 14 14:52:15 GMT 2021

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

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

Back to the top