-->
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.  [ 3 posts ] 
Author Message
 Post subject: Mapping an Interface with Annotations
PostPosted: Wed Aug 22, 2007 11:33 am 
Newbie

Joined: Wed Aug 22, 2007 11:02 am
Posts: 1
Hibernate version: 3.2.0.ga

Name and version of the database you are using: Oracle 9i

I am trying to create a table with a column whose type is an interface using polymorphic association. In other words, in this column, I would like to store any object that implements the particular interface. Also, I am trying to do all my mappings with annotations and avoid using a mapping file if possible for solving this problem.

I am familiar with polymorphic mappings for superclass/subclasses. I have tried to use the same technique for interfaces to no avail. I have been unable to find any polymorphism documentation directly related to mapping interfaces using annotations.

Firstly, is what I am describing possible? I would think it should be. If so, should superclass/subclasses technique adapt to interfaces? Or, is there another approach I should be using? How should the interface and property be annotated to make this work? Any pointers in the right direction would be helpful.


Top
 Profile  
 
 Post subject: May not be possible
PostPosted: Thu Aug 23, 2007 1:38 pm 
Newbie

Joined: Wed Jun 30, 2004 3:51 pm
Posts: 7
C,

This issues that Hibernate user entered on Hibernate's JIRA, and follow ups may provide some help:

http://opensource.atlassian.com/project ... owse/ANN-9

Thank you,
Edmon


Top
 Profile  
 
 Post subject: May not be possible
PostPosted: Thu Aug 23, 2007 1:44 pm 
Newbie

Joined: Wed Jun 30, 2004 3:51 pm
Posts: 7
C,

This issues that Hibernate user entered on Hibernate's JIRA, and follow ups may provide some help:

http://opensource.atlassian.com/project ... owse/ANN-9

Thank you,
Edmon


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