-->
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.  [ 2 posts ] 
Author Message
 Post subject: Collection without containing entity?
PostPosted: Tue May 04, 2004 12:01 pm 
Newbie

Joined: Tue May 04, 2004 11:51 am
Posts: 8
http://www.hibernate.org/hib_docs/refer ... tions.html says: " Collection instances are distinguished in the database by a foreign key to the owning entity."

Can Hibernate manage collections that do not have a containing entity? That is, is there such a thing as a managed-by-Hibernate Java list that supports add(), remove(), and so on?

(To ask this question in another way, is it possible to use Hibernate to manage a table with just two columns: id and name? Everything I've read seem to indicate that Hibernate can only manage lists if they are embedded within another object, and even then only if the list references this object.)



Michael


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 12:02 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Not possible (actually, it was in Hibernate 1.x, but no one needed it).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.