-->
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 start the index in one to many mapping with 1
PostPosted: Mon Sep 14, 2009 9:39 am 
Beginner
Beginner

Joined: Mon Sep 14, 2009 9:29 am
Posts: 30
I am currently working in banking project.So in am facing a great problem in index value in one to many mapping.By defualt the index in one to many mapping start with 0.But I need to start with 1 as initial value please help me out.Thank a lot


Top
 Profile  
 
 Post subject: Re: how to start the index in one to many mapping with 1
PostPosted: Mon Sep 14, 2009 9:53 am 
Beginner
Beginner

Joined: Wed Jun 17, 2009 9:03 pm
Posts: 31
Location: mumbai
Hi

try this.

Code:
<list name="test">
         <key column="testid"/>
         <list-index base="1"> </list-index>
         <one-to-many class="XYZ"/>
      </list>


Top
 Profile  
 
 Post subject: Re: how to start the index in one to many mapping with 1
PostPosted: Tue Sep 15, 2009 7:34 am 
Beginner
Beginner

Joined: Mon Sep 14, 2009 9:29 am
Posts: 30
THANK YOU VERY MUCH SIR..I was searching for this for the past 1 week ..thanks a lot


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.