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 ?