Has anyone come across of this error? Using data class with Spring Data Rest. The
kotlin('plugin.allopen')
was added to the gradle.
Copy code
@Component
class UserRestConfigurer : RepositoryRestConfigurer {
override fun configureRepositoryRestConfiguration(config: RepositoryRestConfiguration) {
config.withEntityLookup()
.forRepository<User, Long, UserRepository>(UserRepository::class.java)
.withIdMapping(User::email)
.withLookup(UserRepository::findByEmail)
}
}
a
adamd
12/04/2019, 1:26 PM
I'm not sure, but I believe that allopen plugin itself needs some configuration (eg. annotations to open) and there is some plugin kotlin.spring which does it out of the box?