-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to provide mapping file for a property which is an array
PostPosted: Sat Nov 11, 2006 9:26 am 
Newbie

Joined: Fri Nov 10, 2006 9:25 am
Posts: 2
Hi All,


In my pojo class there are properties of type String array and Long arrays.but in db i have to save them in different rows.

pojo class -

private Long[] creditId=null;
private String[] firstname=null;

form bean -

private Long[] creditId=null;
private String[] firstname=null;

In db - credit_id column and first_name column

I have to save information of 2 persons in db,like
credit_id first_name
1 rakesh
2 jaanu

May i know how to provide a mapping file for this.

Thanks,
Rakesh.




Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 12:26 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
There is a way to map <array> but you have to have a key for it.
A way to assoicate a set of rows to the entity


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 12, 2006 12:10 am 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
http://www.hibernate.org/hib_docs/nhibe ... tions.html


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