A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
How to Find specific object using Hibernate from the database.?
Joined: May 17, 2010
May 20, 2010 05:28:40
How to Find specific object and load data into that Object from underlying database using Hibernate?
For e.g If I don't know object's identifier and know only object's specific attribute value. Then how to retrive that object based on that attribute value using Hibernate?
Please give the syntax.
Joined: May 11, 2010
May 20, 2010 05:43:40
if you have the object class and the id value
you can easliy load as below
I did not understand what problem in your case
Joined: Sep 29, 2008
May 20, 2010 06:30:14
Find by example, or just do a regular HQL query. You should take in to account that you could get multiple results.
I agree. Here's the link:
subject: How to Find specific object using Hibernate from the database.?
How to set a radio button selected from a JSP page, with the help of values extracted from database?
What is the best way to store List<List<String>> in database?
multiple condition in referencing collection in object using JPA
Struts - Hibernate integration
Cascade attribute's value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015