Has anyone come across of this error? Using data c...
# spring
t
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
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?