-->
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: formula based join syntax
PostPosted: Mon Jul 02, 2007 5:28 pm 
Newbie

Joined: Sun Oct 01, 2006 10:35 pm
Posts: 9
Hello.
I am using Hibernate 3.1

I am trying to do a condition based join on a 1-many relationship. I want to make a join with a record on the many side that has a date column to be null.I am able to join if I have condition with a specific date, but however I give the syntax, hibernate is not accepting the 'date is null' condition.

here is what I am using

<many-to-one name="maxBidder" property-ref="maxBidder">
<column name="itemkey"></column>
<!-- <formula>'2007-07-02 00:00:00.000000000'</formula> -->
<formula>('is null')</formula>
</many-to-one>

The concrete date one works, but not the 'is null' one. I tried with different type of quotes etc.

Any help on this syntax is greatly appreciated and I will rate for sure!

R


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.