persistence
persistence copied to clipboard
The following methods are inexplicably missing from the Criteria API: * `CriteriaBuilder.treat(From, Class)` * `Subquery.correlate(From)` As a result, programmers have to use a sibling method with a wider type, causing...
It would be good if we were able to parameterize AttributeConverter instances and/or have access to property metadata within an AttributeConverter. This way we are able to reuse AttributeConverter code...
Support use of `EntityResult` within `ConstructorResult` for result type mapping of native queries.
Currently the only way to check whether a named query with a given name exists is calling EntityManager.createNamedQuery(…). Unfortunately the non-presence of a query is expressed by throwing an exception....
This would be useful hook for creation and/or modification of named queries.
The cache implementation for the second level cache currently has to be configured via vendor specific properties but the semantics of the Cache are already reflected in the interface javax.persistence.Cache....
JPMS introduced the concept of the module path in addition to the classpath but the spec currently strongly requires usage on the classpath in a way disallowing users to pass...
Spin off from #98: as of 2.1 definition of @NamedEntityGraph can be too verbose, see ie [https://github.com/javaee-samples/javaee7-samples/blob/master/jpa/entitygraph/src/main/java/org/javaee7/jpa/entitygraph/Movie.java](https://github.com/javaee-samples/javaee7-samples/blob/master/jpa/entitygraph/src/main/java/org/javaee7/jpa/entitygraph/Movie.java) It would be good to allow simplified form, ie: ``` @NamedEntityGraph( attributes =...
Issue https://github.com/jakartaee/persistence/issues/107 proposes support for subqueries in the `select` clause. That's a good idea, but we could also allow subqueries in `from` and `join`.
At present I do the following to reload an entity such that all the fields in the entity graph provided are loaded ``` entityManager.detach(entity); final var entityType = entityManager.getMetamodel().entity(entity.getClass()); final...