Marcel,

If you are doing the find within the same em as you did the insert
(and haven't issued a clear) the find operation is getting the entity
from the cache instead of making a trip to the database.  You can
force a trip to the DB by doing a refresh after the find.

      CompanyProperty cp = em.find(CompanyProperty.class, key);
      em.refresh(cp);
      log.info(cp.getCreationTs());

-Jeremy

Reply via email to