• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read only CMP field in Weblogic  RSS feed

 
Kevin Smither
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"ashutosh sharmaIBM",
Please check your private messages.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!