Tag: 冬眠

春季数据JPA /hibernate“无法find给定名称的属性”

我们有一个Spring Web应用程序和Hibernate的问题。 它写在Kotlin。 我们有一个抽象的实体 @Inheritance(strategy = InheritanceType.JOINED) abstract @Entity class ContactLogEntry protected constructor() { @GeneratedValue @Id val id: Long = 0 @ManyToOne @JoinColumn protected lateinit var _contact: AbstractContact open val contact: AbstractContact? get() = _contact @ManyToOne protected var _user: User? = null open val user: User? get() = _user 其中一些: @Entity class MailLogEntry() : ContactLogEntry() […]