Closed kihwankim closed 1 month ago
Supporting CrudMethodMetadata breaks backwards compatibility, I should have paid more attention to that.
When I checked the code, supporting CrudMethodMetadata forced its use in Repository, and since KotlinJdslJpqlExecutor was originally created for use in Repository, there are no plans to support using KotlinJdslJpqlExecutor alone.
So if you want to use KotlinJdslJpqlExecutor, I recommend that you create a repository and use it.
Personally, I recommend using EntityManager directly. Because you can set limits, lockmode, etc. much more freely, and it's not dependent on Spring, so it's much easier to understand the library, and it doesn't add so much code compared to KotlinJdslJpqlExecutor.
I will close this issue. If you have any additional questions, please reopen it.
Question
I wrote the code as below, but since CrudMethodMetadata(lockModeType, queryHints) were added in KotlinJdslJpqlExecutorImpl to version 3.4.0, the error as below has occurred. What should I do??
Error Example in 3.4.0 version
Reason
the place error occur![image](https://github.com/line/kotlin-jdsl/assets/19687080/f971c505-0a7d-43a3-9741-2f56fda15827)
reason the error occur the reason this error is that all functions in KotlinJdslJpqlExecutorImpl didn't added at
implementations
varthe way I tried to fix(failed)
I tried to cache metadata from all interfaces of kotlinJdslJpqlExecutor through the JpaRepositoryFactoryBean.afterPropertieset() method, but failed.
supporter:spring-data-jpa