kqr
01/16/2021, 11:20 AM@Entity
@Table
class Student(
@Id
@SequenceGenerator(name = "student_sequence", sequenceName = "student_sequence", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "student_sequence")
var id: Long? = null,
val name: String,
val email: String,
val dateOfBirth: LocalDate,
) {
@Transient
fun getAge(): Int = somemagic
}