-->
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 multiple ArrayLists to the same table
PostPosted: Tue Jan 22, 2008 9:21 am 
Newbie

Joined: Tue Jan 22, 2008 9:14 am
Posts: 2
Hi, i'm pretty new at using Hibernate and i've come across a problem that does not seem to be covered by the documentation.

Simply put, how do you map multiple lists to the same table? I have a data structure that looks like this:

/** the SUBSDATA record id */
private int id;
/** record number */
private int subRecNumber;
/** active IMSI number */
private String subActiveImsi;
/** MSISDN */
private String subMsisdn;
/** additional MSISDN */
private ArrayList<String> subAddMsisdnList;
/** Bearer Capability (BC) number tied to Additional MSISDN */
private ArrayList<Integer> subBcNumberList;
/** Service pointer for Basic Service (BS) that represents the BC number */
private ArrayList<Integer> subBsPointerList;

Can i write the XML file in such a way that the 3 ArrayLists will be mapped to the same table? The lists all have the same number of elements, and i wanna get a structure based on a common index. Also, if i cannot do this, any suggestions on how to map this more effectively?


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.