From: <no...@at...> - 2005-04-20 12:16:57
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HBX-234 Here is an overview of the issue: --------------------------------------------------------------------- Key: HBX-234 Summary: Support interface inheritance mapping Type: Improvement Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate Extensions Components: annotations Versions: 3.0beta1 Assignee: Reporter: Gili Created: Wed, 20 Apr 2005 7:16 AM Updated: Wed, 20 Apr 2005 7:16 AM Description: 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 :) --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: craig m. (JIRA) <no...@at...> - 2005-10-11 13:14:05
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-9?page=all ] craig mcmillan updated ANN-9: ----------------------------- Attachment: hibernate3-annotations-3.1beta5-3896-3948.diff here's a patch against 3.1beta5 it's still a work in progress, no guarantees yet. i'll post updated patches as i continue it permits @Entity annotations to be applied to interfaces. it may permit @EmbeddableSuperclass annotations to be applied to interfaces too, tho i haven't tested that at all yet > Support interface inheritance mapping > ------------------------------------- > > Key: ANN-9 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-9 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.1beta3 > Reporter: Gili > Attachments: hibernate3-annotations-3.1beta5-3896-3948.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 |
From: craig m. (JIRA) <no...@at...> - 2005-11-16 06:23:31
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-9?page=all ] craig mcmillan updated ANN-9: ----------------------------- Attachment: hibernate3-annotations-3.1beta5-3896-4138.diff hibernate3-annotations-3.1beta5-3896-4138.diff : an updated patch, against 3.1beta5, with unit tests. no functional changes from previous patch. i'll port it to a later version when i get a chance supports (tested): - @Entity interfaces [ restricted to single @Entity inheritance chain, obviously ] - @EmbeddableSuperclass interfaces [ not restricted to single inheritance chain ] > Support interface inheritance mapping > ------------------------------------- > > Key: ANN-9 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-9 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.1beta3 > Reporter: Gili > 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 |
From: Alexander R. (JIRA) <no...@at...> - 2006-05-06 14:57:25
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-9?page=comments#action_23029 ] Alexander Rupsch commented on ANN-9: ------------------------------------ Is this ported to beta10? If not, will it be in the near future? regards > Support interface inheritance mapping > ------------------------------------- > > Key: ANN-9 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-9 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.1beta3 > Reporter: Gili > 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 |
From: craig m. (JIRA) <no...@at...> - 2006-05-08 17:33:33
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-9?page=comments#action_23042 ] craig mcmillan commented on ANN-9: ---------------------------------- not ported yet... i will get round to it at some point, but i don't know when > Support interface inheritance mapping > ------------------------------------- > > Key: ANN-9 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-9 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.1beta3 > Reporter: Gili > 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 |