-->
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.  [ 3 posts ] 
Author Message
 Post subject: Difference between <class... and <entity class=....??
PostPosted: Tue Mar 13, 2007 3:09 pm 
Beginner
Beginner

Joined: Sat Feb 10, 2007 12:18 pm
Posts: 23
Hi

I am still working on this nice book (Java Persistence with Hibernate) and I have a short question.

The book uses in the first examples the mapping with the element <class ...> but later it uses <entity class...>. What is the difference between this notations?

Thx in advance
-- Marc


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 3:15 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
<class...> is used in Hibernate *.hbm.xml metadata files.
<entity...> is used in JPA XML descriptors.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 3:21 pm 
Beginner
Beginner

Joined: Sat Feb 10, 2007 12:18 pm
Posts: 23
Thanks a lot.
I forgot about this JPA things because I don't want to use them right now :-)


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

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.