6 Replies Latest reply on May 11, 2006 11:21 PM by raygeeknyc

    Entity Beans in 3.0 not persisting property changes

    raygeeknyc Newbie

      I have an entity bean that I am deploying in CR2, I am finding that the beans I instantiate via the EntityManager (ie a query returns them) are kept in sync with the database but when I create new instances outside of the persistence context and then use the Entity Manager persist (or merge) methods, they are added to the database but later changes to these beans' properties are not persisted.

      for example

      BeanType b = new BeanType();

      After this the database contains 1 in the column mapped to by properrty X, whereas I expected it to contain 2