-->
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.  [ 1 post ] 
Author Message
 Post subject: a JPQL request with an addition operator that doesn't work
PostPosted: Thu May 17, 2012 12:39 pm 
Beginner
Beginner

Joined: Tue Feb 12, 2008 3:53 pm
Posts: 38
Hi,
I use Hibernate in my application. I don't see why the following request is wrong (I reproduce below what I actually see on the screen, that is the 2 "f" are red marked (problem on RField f))


@NamedQuery(query = "SELECT MAX(f.fldX + f.fldLength) " +
"FROM RField f " +
"WHERE f.RScreendw.id.scrId = :scrId AND " +
"f.RScreendw.id.sptNbr = :sptNbr AND " +
"f.RScreendw.id.sdwNbr = :sdwNbr AND " +
"f.fldDwheader <> 'Y'",
name = "com.dataentry.model.RField.findByXMaxGrid"),


Thank you in advance for your answers


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

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.