4 Replies Latest reply on Jan 2, 2010 1:15 PM by sumathra

    How to access the current logged in user in the entity class?

    sumathra

      We would like to implicitly set the logged in user on certain persist / update operations, we already make use of the @PrePersist, @PreUpdate annotated methods to set few attributes. How do we do the same for the logged in user (currently we store the logged in user in the session context, not sure how to surface these values into the Entity model).