Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2005, 04:33 AM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default find method in Hibernate

Is there any thing in Hibernate like ejbfind; where by I can specify a find query for a particular record?

Sikhar
 
Old August 10th, 2005, 04:39 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to olupas
Default


Hi.....

Session.load and Session.get .....
For all of those 2 you need the Id

 
Old August 10th, 2005, 04:59 AM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by olupas


Hi.....

Session.load and Session.get .....
For all of those 2 you need the Id

Thats there, But I wanted something like from Cat as c where c.name=:catName where name is not the id. I guess I will have to take query.list and see if the list is null or not; or may be it will through an exception. Thanks anyway :)

Sikhar
 
Old August 10th, 2005, 05:09 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to olupas
Default

of corses....with list.iterator().








Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Find Method of ADO martinaccess Access 3 November 21st, 2007 07:35 AM
Rows.Find () Method + Windows 98?? thomaz C# 1 March 15th, 2005 06:55 AM
Excel Automation Find Method jman Excel VBA 1 September 17th, 2003 06:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.