I've got a simple entity bean (CMP). I'm messing around with it, and have noted something "funny":
public Integer ejbCreate (String foo) throws CreateException { Integer id = // some generated id foo = foo + "Bar"; setFoo(foo); return id; } IS NOT THE SAME AS: public Integer ejbCreate (String foo) throws CreateException { Integer id = // some generated id setFoo(foo + "Bar"); return id; } In fact, when running the latter code the 'foo' bean attribute does not include "Bar" after it's created! I'm a bit of a "newb", but do understand that in CMP the container actually extends the entity class and _it_ is responsible for storing data... but according to [Mastering Enterprise JavaBeans, E. Roman et al.] a typical ejbCreate implementation includes use of setters. What's going on? Any hints much appreciated, Mike View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889833#3889833 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889833 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user