The answer is NO

If you deploy a CMP bean without setter for an CMP field you get this message:
17:04:18,664 WARN  [verifier] EJB spec violation:
Bean   : MyBean
Section: 10.6.2
Warning: The entity bean class must define a set accessor for each CMP field.
Info   : Field: myField

The CMP fields specified in the deployment descriptor need getter and setter 
methods.
If you need a non CMP field just define 2 normal non abstract interface methods 
as getter and setter but don't mention them in the deployoment descriptor. What 
you do in those methods is up to you.

Johan

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855116#3855116

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855116


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to