David Kubečka
David Kubečka
### Setup Entity model: ``` @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) class Child { @Id @GeneratedValue var id: Long? = null var name: String? // NOTE: it's nullable } class Boy :...
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...
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`.
Currently, the usage of the builders is quite cumbersome. For example in Kotlin: ``` CatViewBuilder.Init(mapOf()).apply { name = "some name" }.build() ``` I would like the usage to be like...
### `@Argument` binding for `@EntityView`s In the following example, `TransactionTagView` should be automatically constructed from the request input data. ``` @MutationMapping fun createTransactionTag(@Argument tag: TransactionTagView): TransactionTagView ``` ### Precreated `EntityViewSetting`...