-->
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: Nhibernate:access a object using non primary key
PostPosted: Tue Feb 22, 2011 10:37 pm 
Newbie

Joined: Fri Feb 18, 2011 12:25 am
Posts: 8
how to retrive a object object from DB using a non primary key?

IN my application there are users object. they have id, name,age...
I want to add a user named "John" to DB if DB does not already contains a user with "John".
Since primary key is user id, how to do this??

thanks in advance.

_________________
christian louboutin


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.