simple interface: @Local public interface TestJob_if { @Asynchronous @Transactional public QuartzTriggerHandle doWork(); } and implementation: @Stateless @Name("testJob") public class TestJob implements TestJob_if { @In(create = true) private Session session; public QuartzTriggerHandle doWork() { BlacklistEntry b = new BlacklistEntry(); b.setBlacklistType(BlacklistType.EMAIL); b.setField1("some.email@domain.com"); session.persist(b); 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)