[
https://issues.apache.org/jira/browse/OPENJPA-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved OPENJPA-2737.
--------------------------------------
Resolution: Won't Fix
Closing as obsolete during backlog cleanup: @PersistenceContext and its @Target
come from the Jakarta Persistence API (jakarta.persistence), not OpenJPA, so
the request is for the spec and its API jar. Please reopen if this still
happens with OpenJPA 4.x.
> Make @PersistenceContext support PARAMETER and CONSTRUCTOR Target
> ElementType's
> -------------------------------------------------------------------------------
>
> Key: OPENJPA-2737
> URL: https://issues.apache.org/jira/browse/OPENJPA-2737
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Dimitrios Liapis
> Priority: Major
>
> @PersistenceContext is currently supporting java.lang.annotation.Target:
> TYPE, METHOD and FIELD java.lang.annotation.ElementType.
> We need to enhance it to also support ElementType's: CONSTRUCTOR and
> PARAMETER so that we can support Injection in immutable objects that say
> don't provide setters and only accept parameters via constructor storing them
> in final fields.
> Please let me know if I can in any way assist on implementing this.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)