-->
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: Formulas and null values
PostPosted: Thu Sep 15, 2005 7:17 am 
Beginner
Beginner

Joined: Mon Dec 08, 2003 8:09 am
Posts: 25
Hi there,
I haven't been able to find any information on the forums about this, or in "Hibernate in action": is it possible to have a formula (used in a Hibernate mapping file) that may return a null value (no rows)? Or must formulas always return at least 1 row? In addition, is it possible to reference a formula field in a HQL query, as in:

FROM SomeObject where fieldOne = "foo" and fieldTwo = "bar";

Where fieldOne/fieldTwo is generated from a formula and may be null?

Cheers
Jon


Top
 Profile  
 
 Post subject: No one knows?
PostPosted: Fri Sep 16, 2005 5:19 am 
Beginner
Beginner

Joined: Mon Dec 08, 2003 8:09 am
Posts: 25
So, no one knows what happens if you have a formula that returns 0 rows?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 19, 2005 5:08 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
a formula return a value null or not, not several rows

_________________
Emmanuel


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.