-->
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 map a Vector
PostPosted: Sat Dec 15, 2007 10:02 am 
Newbie

Joined: Wed Nov 21, 2007 11:03 am
Posts: 8
Hibernate version:3.2

Name and version of the database: MySQL 5.0

Hi everyone,
just a simple question, how can I map a Vector of objects, like:

Code:
class Measurement {
Long id;
Vector<MeasurementEntry> elements = new Vector<MeasurementEntry>(100);
Vector<Integer> allowedEntityType;
....
}


I'm now stuck in this, any help appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 7:51 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
You may use a set or idbag in the mapping based on the requirement.

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


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.