I would try something like this ```@Entity @Table ...
# spring
k
I would try something like this
Copy code
@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
}