-->
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: Relationship problem
PostPosted: Mon May 28, 2007 7:32 am 
Newbie

Joined: Fri Mar 09, 2007 6:23 am
Posts: 3
Location: Lahore
hi

i have a scenario like this, lets say i hv table client and other table clientTypes

clientTypes are already placed it the table,

i single GUI (jsp page) take the information of client like name, address, etc with clientTypeName value.

i use hibernateTemplate in spring to persist this data. i use template.save(clientObject);

it throughs exception like transient object must be save before fulshing client.

i want th clientType id against give typeName that is a forigen key of clientType table in client table.

cient table has relation of many-to-one with clientType.

if anyone encounter this problem then plz reply me as soon as possible


thanks in advance.


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.