| Author |
Read only CMP field in Weblogic
|
Kevin Smither
Ranch Hand
Joined: Oct 22, 2007
Posts: 30
|
|
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!
|
 |
ashutosh sharmaIBM
Greenhorn
Joined: Jun 05, 2006
Posts: 4
|
|
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.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
"ashutosh sharmaIBM", Please check your private messages.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: Read only CMP field in Weblogic
|
|
|