Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance PersistenceUtil to allow initialization #104

Closed
lukasj opened this issue Mar 19, 2015 · 6 comments · Fixed by #447
Closed

Enhance PersistenceUtil to allow initialization #104

lukasj opened this issue Mar 19, 2015 · 6 comments · Fixed by #447

Comments

@lukasj
Copy link
Contributor

lukasj commented Mar 19, 2015

Hello,

at the moment the javax.persistence.PersistenceUtil provides methods to determine the load state of an entity. It would be also nice if we had methods to initialize and unproxy if the entity is a proxy object. I know Hibernate already have this in the org.hibernate.Hibernate class. It would be nice to have a pure JPA solution.

@lukasj
Copy link
Contributor Author

lukasj commented Mar 19, 2015

@glassfishrobot Commented
Reported by paranoiabla

@lukasj
Copy link
Contributor Author

lukasj commented Mar 19, 2015

@glassfishrobot Commented
neilstockton said:
Not all JPA implementations have such a concept as a "proxied object", and the majority don't require you to initialise anything. I can't see how this should become standardised ... its based on Hibernate's implementation only AFAIK

@lukasj
Copy link
Contributor Author

lukasj commented May 5, 2017

@glassfishrobot Commented
This issue was imported from java.net JIRA JPA_SPEC-104

@lukasj
Copy link
Contributor Author

lukasj commented Aug 31, 2018

@gavinking
Copy link
Contributor

This would be good and very easy to add.

gavinking added a commit to gavinking/jpa-api that referenced this issue Aug 10, 2023
@gavinking gavinking linked a pull request Aug 10, 2023 that will close this issue
@gavinking
Copy link
Contributor

Please review proposal #447, which addresses this issue, along with other "missing" functionality of PersistenceUnitUtil.

gavinking added a commit to gavinking/jpa-api that referenced this issue Aug 10, 2023
lukasj pushed a commit that referenced this issue Aug 10, 2023
@lukasj lukasj added this to To do in 3.2.0 via automation Aug 21, 2023
@lukasj lukasj moved this from To do to Done in 3.2.0 Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
3.2.0
Done
Development

Successfully merging a pull request may close this issue.

2 participants