my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes [hibernate tools] exclude table, but let other entities see it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "[hibernate tools] exclude table, but let other entities see it" Watch "[hibernate tools] exclude table, but let other entities see it" New topic
Author

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

Dragan Jovanovic
Greenhorn

Joined: Feb 07, 2008
Posts: 15
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [hibernate tools] exclude table, but let other entities see it
 
Similar Threads
Hibernate Envers : How to delete entries from my audit table?
Tool to generate a Class from MySQL table (Model Class for MVC Pattern)
JPA EclipseLink SEQUENCE table does not exist
Beginner Problem: son & parent
ManyToMany assoicate delete join table entry