0 Replies Latest reply on May 20, 2008 9:55 PM by John Hayward

    persistent object not updated in database in async method

    John Hayward Newbie
      simple interface:
      public interface TestJob_if {
          @Asynchronous @Transactional
          public QuartzTriggerHandle doWork();
      and implementation:
      public class TestJob  implements TestJob_if {
          @In(create = true)  private Session session;
          public QuartzTriggerHandle doWork() {
              BlacklistEntry b = new BlacklistEntry();
              b.setComment("a comment");
              return null;

      The problem... b.setComment is never reflected in the database.  I would expect b is a persistent object, it is saved to the database at the end of the session, but the comment value is missing.  Field1 and blacklist type are present.  FWIW:  I've tried executing a session.saveOrUpdate(b), and session.update(b) after the b.setComment call and neither produces a value for comment in the database.  Am I doing something wrong or is this a bug?
      (seam 2.0.2.GA, jboss 4.2.2.GA)