X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fusermgt%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsecurity%2Fauthentication%2Fjpa%2FJpaGroupSet.java;h=f15454ef70eaf953c6678030edb7445d9895f0be;hb=126430fd1f414ca00babd8d90a58e772c62ac571;hp=5c076d72083a33d8651e3c7ae0379211b83fbdc3;hpb=020248b5d6ad29834255f1d13f926db0bdd29d58;p=utils diff --git a/security/usermgt/src/main/java/org/wamblee/security/authentication/jpa/JpaGroupSet.java b/security/usermgt/src/main/java/org/wamblee/security/authentication/jpa/JpaGroupSet.java index 5c076d72..f15454ef 100644 --- a/security/usermgt/src/main/java/org/wamblee/security/authentication/jpa/JpaGroupSet.java +++ b/security/usermgt/src/main/java/org/wamblee/security/authentication/jpa/JpaGroupSet.java @@ -35,6 +35,12 @@ public class JpaGroupSet implements GroupSet { private EntityManager em; + /** + * Constructs the group set. + * + * @param aEm + * Contextual reference to an entity manager. + */ public JpaGroupSet(EntityManager aEm) { em = aEm; } @@ -46,7 +52,7 @@ public class JpaGroupSet implements GroupSet { return false; } em.persist(aGroup); - em.flush(); // to make sure the version is updated. + em.flush(); // to make sure the version is updated. return true; }