Joined: Tue Mar 02, 2004 9:55 am Posts: 1
|
Hi guys, my first post with a simple question (i hope so! :))
Look at this HQL:
select obj.someclass.otherclass.atribute1
from obj in class anyclass
the problem is: "someclass" is a class that has two extensions, "someclass1" and "someclass2" so "someclass" can be a "someclass1" or "someclass2" and otherclass just exists in "someclass2" so it gives an error when "someclass" is an instance of "someclass1".
I want to receive a Null value when "someclass" is an instance of "someclass1" and the right value whein it's an instance of "someclass2" how can I do it?
_________________ Live it Live - Basketball in all dimensions
|
|