-->
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.  [ 2 posts ] 
Author Message
 Post subject: discriminator-value with logical expression
PostPosted: Wed Oct 28, 2009 8:30 pm 
Newbie

Joined: Wed Oct 28, 2009 8:17 pm
Posts: 2
Hi

Is it possible to write discrimination-value with 'or' expression? I have one table witch I want to map in three class, for instance A,B,C. Class B and C extends A. The problem is that one row in table can be both B and C. I'd like to use subclass tag with discriminator-value attribute but I don't know how to write this with multiple acceptable value.


Last edited by comon on Wed Oct 28, 2009 8:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: discriminator-value with logical expression
PostPosted: Wed Oct 28, 2009 8:32 pm 
Newbie

Joined: Wed Oct 28, 2009 8:17 pm
Posts: 2
Ok, I think I found answer there http://opensource.atlassian.com/project ... wse/HB-172. I'll check it. Sorry for unneeded post.

edit:

Unfortunately this idea doesn't work. I had got:
Code:
java.lang.NumberFormatException: For input string: "1,3"

so I'm open for any suggestion.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.