• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: changing value of discriminator field

 
Oleg SanbIch
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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?

Thanks,
-Oleg.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic