Hi Guys,
I want to use null-save value in JPA Entity. I can create this entity at database with Hibernate. Oracle can’t
distinguish empty string and null. It stores null anyway in table. When I try load this instance from database I have null value at firstName and secondName fields despite they are null-save
@Entity
class MyEntity {
@Id
val int id;
@Column
var firstName: String = ""
@Column
var secondName: String = ""
}
Please advise how to resolve it