-->
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.  [ 4 posts ] 
Author Message
 Post subject: Mapping collection of object
PostPosted: Fri Sep 02, 2005 12:53 pm 
Newbie

Joined: Fri Sep 02, 2005 12:47 pm
Posts: 14
Location: muenchen
I want to map collection of objects. So far in java I was using Vector to hold them and I would be happy to stick with the Vector type instead switching to Set, Bag, List, or Map.

Is there any workaround so one can use Vector to hold objects and still be able to hibernate such a class ?

Sincerely,

Pawel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 1:04 pm 
Beginner
Beginner

Joined: Mon Sep 22, 2003 5:18 am
Posts: 28
Hibernate support custom types for any property. So try to provide convinient wrapper to Vector and use it as property type


Top
 Profile  
 
 Post subject: thanks
PostPosted: Mon Sep 05, 2005 5:38 am 
Newbie

Joined: Fri Sep 02, 2005 12:47 pm
Posts: 14
Location: muenchen
thanks

pity that is not provided in standart

sincerely,

Pawel


Top
 Profile  
 
 Post subject: Re: thanks
PostPosted: Mon Sep 05, 2005 8:45 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 4:03 am
Posts: 34
Location: Aberdeen, UK
First of all, I believe Vector is not the recommended Collection to use in Java anymore but if you are working with an old system, it may make sense to continue using Vector.

Vector implements List, which is supported by Hibernate, so you can then work with the List interface instead of the implementing Vector class.


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