File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate Migration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate Migration" Watch "Hibernate Migration" New topic
Author

Hibernate Migration

renga ram
Greenhorn

Joined: Jan 05, 2007
Posts: 10
I am migrating my hibernate 2.0 java class to hibernate 3.0.while doing so i have encountered the following error.. please help me





Here is the part that makes error



What method i have to use instead of find(string,object,type) in hibernate 3.0. I know the method createQuery() should be used but, the problem is how can i send the object and type in createQuery() method since it accepts only string as a parameter...? Please send me the alternate method signature which should be used in hibernate 3.0..? Thanks in advance...
[ January 16, 2007: Message edited by: Mark Spritzler ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Please renga ram, EaseUp.

Have you looked in the JavaDocs? Have you read the migration guide?
[ January 16, 2007: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Terry Ong
Ranch Hand

Joined: Apr 07, 2006
Posts: 50
Does this help? (using name parameters)


[ January 16, 2007: Message edited by: Terry Ong ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hibernate Migration
 
Similar Threads
Inconsistent stack height 2 != 1
basic app Hibernate
Tune my Spring Dao
NullPointerException in creating Session Object using Hibernate
Issue in annotating DAO using spring 3.0