-->
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: search for results using entity instance not with criteria
PostPosted: Mon Apr 15, 2013 11:11 am 
Newbie

Joined: Mon Apr 15, 2013 10:56 am
Posts: 2
my requirement is, i would create instance of this entity class and set values for few attributes. This does not include setting up of ID. how to fetch result which matches with this given data ?

eg.

emp.setName("aaa");
emp.setSalary(10000);
emp.setLocation("UK");


<??>.find(emp) <-- note here i am just passing the insance of EmployeeE which is mapped with Employee table.

let me know how to acheive this?"

i have a fair memory this was there in hibernate2. but now i dont see this it in hibernate3


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.