The fields from the base class are not visible when you you extend a base class with the @MappedSuperclass annotation.
Your entity doesn't have an id field in $metadata when your entity extends this class:
`@MappedSuperclass
abstract class AbstractEntity : Persistable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private var id: Int? = null`