I marked the column as insertable=false, updatable=false and it still didn't work in in TopLink (worked in OpenJPA). Same error - duplicate column "source".
Its trying to persist derived object B.
I see your problem in changing the descriminator value in the mapped object (thats not my intent). But if I don't map the column to an object (make it Transient) then how will the descriminator value get in the database in the first place ?
thanks,
-Sanjay
[Message sent by forum member 'femski' (femski)]
http://forums.java.net/jive/thread.jspa?messageID=224112