-
Notifications
You must be signed in to change notification settings - Fork 59
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
Simplify programmatic bootstrapping of an EntityManagerFactory #149
Comments
|
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 13, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 13, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 13, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
gavinking
added a commit
to gavinking/jpa-api
that referenced
this issue
Aug 21, 2023
lukasj
pushed a commit
that referenced
this issue
Aug 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, I find it incredibly hard to bootstrap an EntityManagerFactory outside of a container. There are tons of blog posts out there who give advice on how to use
PersistenceUnitInfo
et al. to do that, but whenever I try these approaches, I'm wasting hours until I finally give up and resort to using some Spring utilities. This is how I can do it with Spring:Observe that I have:
DataSource
or JDBCConnection
(that's important, and cannot be done throughpersistence.xml
)That's it. I'm sure this can be done in an even simpler fashion in Spring, or, e.g. through
javax.persistence.Persistence
in a future JPA version.Hope this helps
The text was updated successfully, but these errors were encountered: