Denis Stepanov
Denis Stepanov
Please try it in the latest version
Criteria don't apply joins defined by the Join annotation. You need to do it manually for now.
Just do the join in the criteria: `root.join("others")`, more about the spec https://jakarta.ee/specifications/persistence/3.0/jakarta-persistence-spec-3.0.html#a6925
Thanks @PhilipHassialis!
It's happening because you already have the id assigned. In this case, we assume that the entity is already persisted. Can you try with the latest RC? I think there...
You can assign the id manually and persist the entity which I think you should do in this case.
There are some limitations because we don't have any kind of session compared to Hibernate. The most common use-case is to have IDs assigned or uniquely generated, the cascade works...
The issue is still there: ``` 2022-11-14T03:07:02.6207388Z at io.micronaut.data.r2dbc.operations.DefaultR2dbcRepositoryOperations.blockOptional(DefaultR2dbcRepositoryOperations.java:213) 2022-11-14T03:07:02.6209345Z at io.micronaut.data.operations.reactive.BlockingExecutorReactorRepositoryOperations.executeDelete(BlockingExecutorReactorRepositoryOperations.java:105) 2022-11-14T03:07:02.6210444Z at io.micronaut.data.runtime.intercept.DefaultDeleteAllInterceptor.intercept(DefaultDeleteAllInterceptor.java:53) 2022-11-14T03:07:02.6248347Z at io.micronaut.data.runtime.intercept.DefaultDeleteAllInterceptor.intercept(DefaultDeleteAllInterceptor.java:35) 2022-11-14T03:07:02.6249490Z at io.micronaut.data.intercept.DataIntroductionAdvice.intercept(DataIntroductionAdvice.java:81) 2022-11-14T03:07:02.6251260Z at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:137) 2022-11-14T03:07:02.6252087Z at io.micronaut.validation.ValidatingInterceptor.intercept(ValidatingInterceptor.java:143) 2022-11-14T03:07:02.6261824Z at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:137)...
Do you have `micronaut-kotlin` dependency included?
Try also to add: `org.jetbrains.kotlinx:kotlinx-coroutines-reactive` or maybe `org.jetbrains.kotlinx:kotlinx-coroutines-reactor`