blaze-persistence
blaze-persistence copied to clipboard
Rich Criteria API for JPA providers
See test case: https://github.com/Blazebit/blaze-persistence/pull/1665 The offender here is the added `@Mapping(fetch = FetchStrategy.SELECT)` on `getChildren`. This leads to `children` in the GraphQL response being empty and therefore the added test...
Running the SampleTest as enhanced [in this commit](https://github.com/Blazebit/blaze-persistence/commit/9778610bd001bbf185ac334e6c34a0d847961b95) would normally lead to an NPE [here](https://github.com/Blazebit/blaze-persistence/blob/08793f4ab72cd57762bb6d222ad1fa9421f23e22/entity-view/impl/src/main/java/com/blazebit/persistence/view/impl/EntityViewConfiguration.java#L180). There's, however, a crude fix for this case also in that commit. Please try to...
## Description ## Related Issue ## Motivation and Context
I'm constructing EV instances via generated builders in my tests. The instances are assigned to Kotlin top-level properties (which are compiled to a Java equivalent of a class where the...
Currently only optimistic locking is implemented, but the annotation model already supports configuring pessimistic locking. We need to implement the locking correctly and add tests. As part of this, we...
### Description Currently blaze does not support case insensitive ordering. You should manually pass smth like cb.orderBy("LOWER(field)") ### Expected behavior Will be good to have some boolean flag or additional...
### Description **[See Zulip discussion here](https://blazebit.zulipchat.com/#narrow/stream/338081-general/topic/How.20to.20get.20updated.20backing.20entity.20within.20a.20transaction.3F/near/323109748)** When saving an entity view for an entity that has a one-to-one relationship, the "mappedBy" property of the related entity is null if the...
Unproxying on a PK leads to an unnecessary population of the proxied entity. The offending code is [here](https://github.com/Blazebit/blaze-persistence/blob/e14fabcf36811c81616197a21f865b3eae5b5dca/entity-view/impl/src/main/java/com/blazebit/persistence/view/impl/accessor/EntityFieldAttributeAccessor.java#L87). Other methods in that class should probably be changed as well.
It should cover the same functionality as `CrudRepository` plus perhaps `getReferenceById` from `JpaRepository`. Alternatively, you might put the new methods into a new interface, e.g. `CrudEntityViewRepository`.