• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Migration

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please renga ram, EaseUp.

Have you looked in the JavaDocs? Have you read the migration guide?
[ January 16, 2007: Message edited by: Paul Sturrock ]
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this help? (using name parameters)


[ January 16, 2007: Message edited by: Terry Ong ]
reply
    Bookmark Topic Watch Topic
  • New Topic