-->
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: How to save List of List data?
PostPosted: Tue Jan 13, 2004 10:24 pm 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
I have a class

Code:
class Data {
  List values;
}


This values is a list,every element of values is again a list,and this list
contains the real data.
How to map this data type?

I have posted some articles about this topic:
http://forum.hibernate.org/viewtopic.php?t=927028


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 10:40 pm 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
I think the only solution is to add an Object which encapsulate the row of the table ,like this:

class Row {
List realDataList;
}

class Data {
List rowList;
}

then the mapping is easy.

[quote][/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2004 10:40 pm 
Beginner
Beginner

Joined: Thu Sep 04, 2003 2:52 am
Posts: 29
I think the only solution is to add an Object which encapsulate the row of the table ,like this:

Code:
class Row {
  List realDataList;
}

class Data {
  List rowList;
}


then the mapping is easy.

[quote][/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 5:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
vipcowrie wrote:
I think the only solution is to add an Object which encapsulate the row of the table

Correct, but I suspect you are thinking relational instead of object during your mapping build.

_________________
Emmanuel


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.