[ 
https://issues.apache.org/jira/browse/ARIES-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613572#comment-14613572
 ] 

Giuseppe Gerla commented on ARIES-1345:
---------------------------------------

To manage method annotation, I will check only methods with name that starts 
with "set", has 1 parameter and type of parameter is one of 
EntityManagerFactory (@PersistenceUnit), EntityManager, EmSupplier 
(@PersistenceContext)

> Support jpa annotations on method and class
> -------------------------------------------
>
>                 Key: ARIES-1345
>                 URL: https://issues.apache.org/jira/browse/ARIES-1345
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>    Affects Versions: jpa-2.0.0
>            Reporter: Christian Schneider
>            Assignee: Giuseppe Gerla
>             Fix For: jpa-2.1.0
>
>
> @PersistenceContext and @PersistenceUnit annotations can also be used on 
> method and class level.
> On method level the annotation could be put on a setter.
> On class level I am not sure how we would interpret it. I have not found any 
> good real life example for this so I propose to not support it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to