-->
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: Interfaces and hibernate annotations
PostPosted: Fri Jul 23, 2010 12:23 pm 
Newbie

Joined: Thu Mar 26, 2009 3:00 pm
Posts: 11
Hi All,

I'm hoping there's someone clever out there who can give me a definite answer on this. I've been searching the web for a while and the information seems either old or confusing. I used to map implicit polymorphism in my classes through the mapping files but have moved to annotations. I know need to write something along the lines of implicit polymorphism as I have a Class 'A' that holds an instance 'B' as an interface type 'C'.

Is there any way to do this in annotations?

If not, can I mix annotations with mapping files in a stable way?

also if not, then why hasn't this been including, I would have thought it's something that a lot of programs would require.

Many thanks for your answers.


Top
 Profile  
 
 Post subject: Re: Interfaces and hibernate annotations
PostPosted: Sat Jul 24, 2010 6:48 am 
Newbie

Joined: Thu Mar 26, 2009 3:00 pm
Posts: 11
Hi All,

I found the answer. For some reason it's not listed as implicit polymorphism like it is in the mapping file documentation, instead it's under the @Any tag, once I found it was this it's increbily simple to use the documentation to get the same results as from the mapping files.


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.