[hibernate-issues] [Hibernate-JIRA] Created: (ANN-528) avoid auto import of superclasses to avoid inheritance mapping

Armin Haaf (JIRA) noreply at atlassian.com
Thu Jan 11 08:22:44 EST 2007


avoid auto import of superclasses to avoid inheritance mapping
--------------------------------------------------------------

         Key: ANN-528
         URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-528
     Project: Hibernate Annotations
        Type: New Feature

  Components: binder  
    Reporter: Armin Haaf


It is not possible to avoid inheritance mapping if the superclass of a entity is also a entity. 

Background: A framework provides a basic mapping of a entity, but I want to extend that. 

With annotations it is not possible to just map my extended version and have the superclass behave like a MappedSuperclass. This behaviour is  acceptable but it is not possible to override a the id generation.

So it might be better to have a new annotation (e.g. @RootEntity(mapSuperclass=true)) to avoid auto import of the entity superclass. With that approach it would be easier to create modules and frameworks




-- 
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