Monday, May 5, 2014

Exclude catalog name from reverse-engineered Java classes

Guys I figured it out on how to exclude the catalog field. 

As stated before I added a property in my hibernate.cfg.xml as 

MyDatabaseName 

And also I added the hibernate.reveng.xml and used it to control the generation of pojo. I have pasted the hibernate.reveng.xml that I used 









match-schema=".*" ------> it means select any / all the schema 
match-name=".*" ------> it means select any / all the table from the schema
https://forum.hibernate.org/viewtopic.php?f=6&t=984597

No comments:

Post a Comment