-->
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: How to specify a List<Object> variable in aaa.hbm.xml ?
PostPosted: Thu Oct 28, 2010 11:26 am 
Beginner
Beginner

Joined: Wed Oct 08, 2008 10:59 am
Posts: 37
Assume I have a java class which contains (among others) a variable
which is specified (simplified) as

public class aaa {
....
public List<OtherClass> localList;
}

How should I define the corresponding hibernate-mapping in the aaa.hbm.xml?

OtherClass items are put into a separate table.

Peter


Top
 Profile  
 
 Post subject: Re: How to specify a List<Object> variable in aaa.hbm.xml ?
PostPosted: Fri Oct 29, 2010 5:36 am 
Senior
Senior

Joined: Fri Oct 08, 2010 8:44 am
Posts: 130
Use "bag".


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.