-->
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: Hibernate Annotations with Hib. 3.1, but not Entity Beans
PostPosted: Wed Dec 21, 2005 7:05 pm 
Regular
Regular

Joined: Wed Dec 21, 2005 6:57 pm
Posts: 70
It is not clear (to us anyhow) if the new Annotations release (v. Beta 7 in Dec 2005) can be used without using Entity Beans.

That is, we want to keep our existing (pojo) persistence model which we have mapped using Hibernate 2.1.7, but want to use Java 5 metadata to drive the mappings.

I notice in particular that the tag used to mark something persistent is "@Entity" and am concerned that this mapping will not work if we are not "really" using entity beans.

Note that we use bidirectional one-many mappings, which I understand EJB 3.0 does not support.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 21, 2005 10:24 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you can use hibernate in application server or standalone - it is same like before - Entity is only syntax from standard
hibernate 3.1 is much better and you try


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2005 5:09 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hi, EJB3 entities are POJOs, so when you're using Hibernate right now, you already do EJB3 entities ;-)
Hibernate Annotations does works in a standalone environment with or without an entity manager.
bidirectional one to many are supported in EJB3

_________________
Emmanuel


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.