[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-249) Inheritance of annotations

Frank Zimmerli (JIRA) noreply at atlassian.com
Tue Aug 12 16:30:09 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30843 ] 

Frank Zimmerli commented on HSEARCH-249:
----------------------------------------

The problem is that the class variables are in the abstract class and they are annotated with @Field but the perisistent class is the implementation class of the abstract class. Therefore the @Field should be inherited from the abstract class to the implementation class. 

> Inheritance of annotations
> --------------------------
>
>                 Key: HSEARCH-249
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-249
>             Project: Hibernate Search
>          Issue Type: Improvement
>    Affects Versions: 3.0.1.GA
>         Environment: Hibernate 3.2.6, MySql 5.1
>            Reporter: Frank Zimmerli
>
> The SearchFactoryImpl does not handle inherited annotations. This could be usefull for abstract classes with it's concrete implementations. E.g. AndroMDA uses this mechanism for creating the interface as an abstract class and the the implementation as the hibernate object, which can be used in the services. Annotation inheritance is not part of the annotation specifiation, but there exists a extension from http://www.fusionsoft-online.com/articles-java-annotations.php to access the inherited annotations. It could be done in hibernate in the same way.

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