• Post Reply Bookmark Topic Watch Topic
  • New Topic

[hibernate tools] exclude table, but let other entities see it

 
Dragan Jovanovic
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using hibernate tools reverse engeenering mechanism to (re)generate hibernate entities from relational model. Because of frequent changes I do not want to regenerate whole database every time, but to regenerate some segments of it.
But, when I define what tables to include/exclude in job (either in excludeTable() method of my custom ReverseEngineeringStrategy class, or in reveng.xml file), hiernate tools totally ignores excluded tables. That means, it ignores foreign keys to that table in included tables. For example, if I have table excluded, and table included, hibernate tools will make entity Post with an attribute , not an attribute .
How can I make it to generate that User user attribute, but not to regenerate User entity ?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!