X5-599 wrote:
I'm just asking this here, although I don't have high hopes for something like this, anymore ... It just seems like if Hibernate offers this choice - It should be in the Hibernate Tools (as an option for reverse engineering) aswell.
I read in a similar thread that the Hibernate Tools Team doesn't see any value to this. Seeing you can easily call:
pojo.getTableCompositeId().getIdFieldOne() or
pojo.getTableCompositeId().getIdFieldTwo()
But what if it is a requirement to have the pojos look exactly like their counterpart in the database? Exactly, then you have a bit of a problem, don't you?
At least if your tables/classes are running in the neiborhood of >300.
So, please reconsider making this available!
Just because the core allows to Map non clean models doesn't mean we should generate them.
If you have a requriement of exposing all properties flat on the model then you can implement that as addition to the template generation.