-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate XML config file
PostPosted: Mon Dec 20, 2010 7:42 pm 
Newbie

Joined: Mon Dec 20, 2010 7:32 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.