-->
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: Use of any tag regarding queries
PostPosted: Fri Aug 05, 2005 3:25 pm 
Newbie

Joined: Sat May 21, 2005 8:02 am
Posts: 6
Hi. I'm currently thinking about associations to interfaces. For some reason I don't want
to map the interface to a <class>-Tag, so the common way to map the association is to
use the <any> tag.
This works fine to map the association, but it sucks when it comes to queries (for
example "find all objects associating no interface" or "find all objects with a specific
interface).
Wouldn't it be better to have two properties, one for the id and another one for the class
name of the associated object?
While you still cannot use this pointer in a query for testing properties of the interface
(a property is just a get/set pair), you can at least test what object you are associating.

Am I totally wrong, or have I misunderstood the concept of <any>?

Cheers,
Erik


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.