Skip to main content

[jpa-spec issues] [JIRA] Commented: (JPA_SPEC-72) Allow @PersistenceContext to be used on parameters ot enable constructor injection of EntityManagers

  • From: "arjan tijms (JIRA)" < >
  • To:
  • Subject: [jpa-spec issues] [JIRA] Commented: (JPA_SPEC-72) Allow @PersistenceContext to be used on parameters ot enable constructor injection of EntityManagers
  • Date: Tue, 25 Mar 2014 19:05:49 +0000 (UTC)
  • Auto-submitted: auto-generated


    [ 
https://java.net/jira/browse/JPA_SPEC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=373940#action_373940
 ] 

arjan tijms commented on JPA_SPEC-72:
-------------------------------------

Wouldn't this automatically be possible when those contexts can be injected 
with {{@Inject}}?

> Allow @PersistenceContext to be used on parameters ot enable constructor 
> injection of EntityManagers
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JPA_SPEC-72
>                 URL: https://java.net/jira/browse/JPA_SPEC-72
>             Project: jpa-spec
>          Issue Type: Improvement
>            Reporter: Oliver Gierke
>
> Currently it's not possible to inject EntityManagers into constructors as 
> @PersistenceContext is defined to not be allowed on parameters. it would be 
> cool to enable this as users could then design application components using 
> constructor injection only.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[jpa-spec issues] [JIRA] Commented: (JPA_SPEC-72) Allow @PersistenceContext to be used on parameters ot enable constructor injection of EntityManagers

arjan tijms (JIRA) 03/25/2014
 
 
Close
loading
Please Confirm
Close