[hibernate-issues] [Hibernate-JIRA] Created: (METAGEN-7) Try to find a way to be able to use @SupportedAnnotationTypes("javax.persistence.Entity") in JPAMetaModelEntityProcessor

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Nov 6 10:55:15 EST 2009


Try to find a way to be able to use @SupportedAnnotationTypes("javax.persistence.Entity") in JPAMetaModelEntityProcessor
------------------------------------------------------------------------------------------------------------------------

                 Key: METAGEN-7
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-7
             Project: Hibernate StaticMetamodel Generator
          Issue Type: Task
            Reporter: Hardy Ferentschik
            Assignee: Hardy Ferentschik


At the moment we use @SupportedAnnotationTypes("*"). Better would be to explicitly specify  @SupportedAnnotationTypes("javax.persistence.Entity"). Then the processor would only be called if there are any entities annotated with @Entity. However, this also means that the processor is not getting called at all if there is no @Entity which could be the case if all configuration is done via xml. 
We would need a way to make sure that the processor is called at least once to ensure xml is parsed. Other than that only entities annotated with @Entity should be passed to the processor. 
At the moment I don't see how we can make this happen :(

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