-->
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: mapping array of strings
PostPosted: Fri Jun 29, 2007 11:07 am 
Newbie

Joined: Tue Jun 26, 2007 3:24 pm
Posts: 11
Hibernate version:
3.0

Mapping documents:
xml-based


I have a class, which contains a String array. I have a table with information on the class which is linked to a table with information on the array by a primary key in the former, and a foreign key in the latter column. I'm (pretty sure) that I should use a one-to-many mapping for this, however I'm also pretty sure that I'll have to encapsulate the String object inside of another object which has an id attribute. All of the examples I have seen on array mapping involve some type of id for each object in the array.

I would like hibernate to track each object in the array based on its index, Is there any other way to do this, or if this is not possible, could someone please tell me it's not?


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.