title: Inherit parent properties from a Base class with Jpa annotations in Kotlin
body: <p>All our JPA Entities have an @Id, @UpdateTimestamp, Optimistic Locking etc... My idea is to create some kind of Base class witch contains everything that every JPA Entity needs to have which can be inherited by all of them.</p>
  
  <pre><code>open class JpaEntity (
  
     @Id
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     var id : Long? = null,
  
     @UpdateTimestamp
     var lastUpdate : LocalDateTime? = null
  
     ...
  )
  </code></pre>
  
  <p>I trying to find how I can use this class (or any other solutions) so that the devs in our team don't need to redo the same typing over and over.</p>
  
  <p>So far my implementation doesn't have an "Identifier" according to JPA</p>
  
  <pre><code>@Entity
  class Car (
  
      @get:NotEmpty
      @Column(unique = true)
      val name : String
  
  ) : JpaEntity()
  </code></pre>
  
  <p>Does anyone has an elegant solution for this?</p>