-->
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.  [ 3 posts ] 
Author Message
 Post subject: EqExpression
PostPosted: Mon Jun 12, 2006 2:17 pm 
Newbie

Joined: Tue Mar 22, 2005 5:43 pm
Posts: 16
Location: Teksouth
Hibernate version:3.1.1

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:MySQL 4.1

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Just changing to hibernate version 3.1.1 from 2.1. Can anyone tell me what's the replacement for expression.EqExpression and the syntax on how to use it?

my current code is as follows:

Object result = session.createCriteria(PackageFile.class).add(new EqExpression(ATTRIBUTE_GUID, guid, false)).uniqueResult();

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 12, 2006 2:40 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
Restrictions.eq(String propretyname, Object value)

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject: EqExpression
PostPosted: Mon Jun 12, 2006 3:27 pm 
Newbie

Joined: Tue Mar 22, 2005 5:43 pm
Posts: 16
Location: Teksouth
Thank you. It helped


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.