mirror of
https://github.com/jlengrand/spring-petclinic-kotlin.git
synced 2026-03-10 08:41:20 +00:00
Fix bootstrap warning: getter methods of lazy classes cannot be final
This commit is contained in:
@@ -34,7 +34,7 @@ open class BaseEntity : Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
var id: Int? = null
|
||||
open var id: Int? = null
|
||||
|
||||
val isNew: Boolean
|
||||
get() = this.id == null
|
||||
|
||||
@@ -31,7 +31,7 @@ import javax.persistence.MappedSuperclass
|
||||
open class NamedEntity : BaseEntity() {
|
||||
|
||||
@Column(name = "name")
|
||||
var name: String? = null
|
||||
open var name: String? = null
|
||||
|
||||
override fun toString(): String =
|
||||
this.name ?: ""
|
||||
|
||||
Reference in New Issue
Block a user