-->
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.  [ 4 posts ] 
Author Message
 Post subject: How migratation of the method session.find
PostPosted: Fri Sep 30, 2005 8:28 am 
Newbie

Joined: Sat Feb 19, 2005 10:23 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0.5

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I want the migration of this method, I saw in the documentation use createQuery() because the find() is deprecated, but the method createQuery() only have one param (and not is overloading)

How I can migrate this from 2.1.8 to 3.0.5?

Code:
results = session.find(query, parameters, hibernate_parameter_types);


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 8:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
session.createQuery(query).setParameters(parameters, hibernate_parameter_types).list();

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Thks
PostPosted: Fri Sep 30, 2005 8:44 am 
Newbie

Joined: Sat Feb 19, 2005 10:23 am
Posts: 3
Thks max


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 8:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i also went and javadoc'ed it....

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

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.