Problem with targetEntity at oneToMany entities in Kotlin
I have a problem with entity mapping in the Kotlin.
Receives an error when deploying the code on the Wildfly 10 server:
org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: crud.entity.Agreement.payments
I have seen similar topics on the stackoverflow, but they are java and do not help solve the problem.
my entities:
@Entity
open class Agreement {
@Id
var id: Long? = null
@OneToMany(mappedBy = "agreement")
open var...