]
Hardy Ferentschik updated METAGEN-7:
------------------------------------
Component/s: processor
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
Components: processor
Affects Versions: 1.0.0-Beta-2
Reporter: Hardy Ferentschik
Assignee: Hardy Ferentschik
Fix For: 1.1.0
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: