I have an EJB 2.0 CMP bean where I want to map one of the attributes as "read only", meaning the value is loaded from the DB but when the bean is persisted the value in this field should not be written back to the DB column. The entity's value is persisted from another batch cycle and does not originate from within this application, I do not have the option of redesigning the system, have to work with what it is ;-)
From my research I can find this feature is available in JBoss but I cannot find any such support in Weblogic (v9.2). If anyone has information on this I'd appreciate sharing it Thanks much!
Joined: Jun 05, 2006
If you are using WebLogic Workshop(which is eclipse based)-you can add in the annotations:
And this information goes into "weblogic-ejb-jar.xml" once you compile it via ejbGen.