Bookmarks tagged [jpa]
https://thorben-janssen.com/hibernate-enum-mappings/
With Hibernate, you can map enums in 3 ways:
- Hibernate’s standard mappings provide a simple way to store enum values in your database. You can choose if you want to persist the String representati...
https://stackoverflow.com/questions/1910215/how-to-make-a-property-nullable-in-jpa-gae-j
Properties are nullable by default in JPA, except primitive types. You can control nullability using the nullable property of the @Column annotation, like so: ...
https://thoughts-on-java.org/complete-guide-inheritance-strategies-jpa-hibernate/#comments
Hibernate and JPA support 4 inheritance strategies which map the entities to different table models. But which one is the best for your use case?
- tags: java, jpa, hibernate, inheritance, sql
https://thoughts-on-java.org/hibernate-tips-difference-join-left-join-fetch-join/
They are similar but there is an important difference between JOIN, LEFT JOIN and the JPA-specific JOIN FETCH statement.
https://thoughts-on-java.org/ultimate-guide-association-mappings-jpa-hibernate/
Explains one-to-one, many-to-one and many-to-many associations with examples.
https://stackoverflow.com/questions/1069992/jpa-entitymanager-why-use-persist-over-merge
Either way will add an entity to a PersistenceContext, the difference is in what you do with the entity afterwards.
Persist takes an entity instance, adds it to the context and makes that instance ma...
https://www.thoughts-on-java.org/complete-guide-inheritance-strategies-jpa-hibernate/
Hibernate and JPA support 4 inheritance strategies which map the entities to different table models. But which one is the best for your use case?
http://arquillian.org/guides/testing_java_persistence/
Test your data! Learn how to test Java Persistence (JPA) queries against multiple providers in an Arquillian test.
- tags: arquillian, java, jpa