-->
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: Problem with Collection Object
PostPosted: Fri Apr 22, 2005 3:38 pm 
Newbie

Joined: Fri Apr 22, 2005 3:21 pm
Posts: 12
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0
Name and version of the database you are using: Oracle 9.2.1


Issue : I have a Database table called User. On the java side I have a user object which maps to this table ( User ) and its attributes.

I also have a UserList object which extends ArrayList and is coded to be a collection of User Objects. I would like to be able to send an instance of UserList object to session.save(instance of userList ) and have hibernate handle the entry of each object into the table.

Just for this very simple scenario, is this at all possible. Currently this is has no constraints applied on it except for its primary key need. I have tried using the User.hbm.xml and tried to use bag, array and set with out success.

UserList object does nto map to any table. Its purely a collection. Any suggestions or pointers would be appreciated.


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.