Hi, using the eclipse plugins, I do POJO generation using the following two files:
hibernate.cfg.xml
hibernate.reveng.xml
The reveng process builds from JDBC metadata.
Now it creates POJO with annotations, and also generates (classname).hbm.xml.
I need better control over the mappings, but I want to keep the reveng process in place.
Correct me if I'm wrong, but I think the hbm.xml files will override any java annotations with Hibernate? Is that the case?
If so, is there a way I can add my own global.hbm.xml such that it will override settings in a generated (classname).hbm.xml?
I want to change certain aspects of the mappings that I can't seem to do with the reveng.xml.
Thanks in advance,
Davis
|