-->
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: JPA Query Question
PostPosted: Fri Jul 17, 2009 10:11 am 
Newbie

Joined: Fri Jul 17, 2009 10:06 am
Posts: 2
I have the following query, which doesn't seem to be working properly. Specifically, it's only returning a single record when multiple records should be returned. The Declaration domain object has a one-to-many relationship to the Stamp domain object. Any help on this would be greatly appreciated!

SELECT NEW org.cityofchicago.dor.ezdec.domain.declaration.NonRecordedDeclarationRecord(d, s) " +
"FROM Declaration d left join d.stamps s " +
"WHERE d.status != :assessorCompleted AND " +
"d.status != :deedRecorded AND " +
"d.status != :accepted AND " +
"d.status != :open AND " +
"d.status != :rejected AND " +
"d.status != :submitForClosing AND " +
"s.status = :stampStatus AND " +
"d.propertyTransferDate < :today AND " +
"d.county = :county " +
"ORDER BY d.propertyTransferDate Asc


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.