How do I change the value of discriminator field in Hibernate? I have a hierarchy of classes: UserVO <---- NewUser <---- IncompleteUser <------ ActiveUser
Where <---- means "extends", UserVO is an abstract class at the top of hierarchy. All these classes are mapped to the same 'user' table with discriminator field 'USER_TYPE'. Now if I have a record with 'NewUser' value in discriminator field and want to change it to 'IncompleteUser' (user status changes), how do I do that with Hibernate?