Hello,
How can one refresh an entity in the following scenario:
Single Table inheritance with a discriminator column, dtype.
One parent class, and currently only one subclass.
In some cases, I want to change the subclass entity to the parent. Think of this in terms of Employee being the super class and Contractor being the subclass. I have an Employee that I want to make an Contractor, without changing the primary key, but just the fields that identified that will make my Employee into a Contractor. How can I do that?
The converse scenario works as expected because the Contractor is always an employee.
I'm able to cast the relationships using each way, so please don't read this as a question about casting. More, the question is how can I refresh the entity without restarting the application server, e.g. updating the entity?
..\Wendy
[Message sent by forum member 'wbossons' (wbossons)]
http://forums.java.net/jive/thread.jspa?messageID=240517