Man, just add a boolean flag. The entity stuff is ...
# announcements
d
Man, just add a boolean flag. The entity stuff is just way overcomplicating.
Copy code
var hasId: Boolean = false
var id: Long = 0L
  get() = TODO()
I don't know how this works with persisting though.
I guess the generics are a fine solution
c
1. this won't work, it's just not how JPA/Hibernate works 2.
id
has to be
val