Hi,
I have some questions regarding hibernate configuration.
In my SP project, it uses xml mapping for hibernate entities. The header in the file is like this:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
In SM project, it uses annotation mapping. The header is like this:
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
1) If I combine SM's config file into SP, but I don't want to change the annotation mapping in SM. how to do it? 2) If I have a table let's say tblUnit which had 20 columns. I only need to use 4 columns. Should I map each of the columns in tblUnit table in XML file or annotation object file?
Thanks, Wendy
|