[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4413) Support interface inheritance mapping
Tristan ROBET (JIRA)
noreply at atlassian.com
Wed Jan 12 06:54:07 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39591#action_39591 ]
Tristan ROBET commented on HHH-4413:
------------------------------------
Hi all,
6 years later, this request has not been fullfilled and is not part of Hibernate Annotations.
Is it really an "Improvement" ? I would call it a bug, because as far as I know, annotations are nowadays supposed to be a "standard" replacement for Hibernate mapping files.
I would like to implement the "Payment" example which can be found in Hibernate documentation using a "Payment" interface and annotations, but I can't :
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/inheritance.html
> Support interface inheritance mapping
> -------------------------------------
>
> Key: HHH-4413
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4413
> Project: Hibernate Core
> Issue Type: Improvement
> Components: annotations
> Reporter: Steve Ebersole
> Attachments: hibernate3-annotations-3.1beta5-3896-3948.diff, hibernate3-annotations-3.1beta5-3896-4138.diff
>
>
> It should be possible to create a mapping with interfaces, as described by the documentation here: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#inheritance-tableperclass
> Specifically right now it is impossible to annotate interfaces and according to HBX-231 even if you could @Entity is only meant to get used on classes so the question becomes "what do you annotate it with?"
> As I pointed out here http://forum.hibernate.org/viewtopic.php?p=2238824#2238824 the additional problem seems to be that XDoclet doesn't support interface annotation either (http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1345) so I'm left without a workaround.
> I can't convert the interfaces to abstract classes because I implement multiple interfaces in my application and Java does not do multiple inheritance.
> If you know of a nice workaround, please let me know :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list