Does anybody know of a good list of what is new in JPA 2? Not what is new with Hibernate/TopLink in the version that supports JPA 2 but what is new in the actual spec.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
The link mentioned in the accepted answer doesn't say anything about the second level cache so I decided to post a quick list to summarize "What's new in JPA 2.0 (JSR-317)":
persistence.xml
- E.g.javax.persistence.jdbc.driver
, etc instead of persistence provider specific properties.PROPERTY
andFIELD
access type can be mixed in a hierarchy and combined in a single class.@ElementCollection
,@OrderColumn
- For better collection support.@OneToMany
/@OneToOne
- For expanded mappings.QueryBuilder
andCriteriaQuery
for programmatic construction of type-safe queries.EntityManager
(supported properties,detach
method, etc) andQuery
(query hints).