Have you implemented equals() and hashCode() in your objects? My guess is that JBoss uses these either explicitly or implicitly to determine if the object is the same as the stored version, and only re-writes when they change. As the Object version of these methods simply refers to memory address, the same object wont change (I think :)
cheers dim ----- Original Message ----- From: "Eric Jain" <[EMAIL PROTECTED]> To: "Jboss-User" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 9:58 PM Subject: [JBoss-user] Objects in entity beans are not updated > Complex (serializable) objects stored in a single field within a CMP 2.0 > entity bean don't get updated permanently unless I create a new object and > store that. The log says something about the bean not being dirty. All > accesses are through local references. Am I doing something wrong, or is > this a bug (JBoss 3.0.0 alpha, November)? > > > bean.getData().setX(5); // only temporary update! > > Data d = bean.getData(); > d.setX(5); > bean.setData(d); // only temporary update! > > Data d = new Data(bean.getData()); > d.setX(5); > bean.setData(d); // this works > > > -- > Eric Jain > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
