-->
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: Working with subclasses
PostPosted: Tue Mar 02, 2004 10:06 am 
Newbie

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


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.