I believe the proper way to do this is to use the User.EMAIL parameter in an IdentityQuery (which is a pretty cool API btw.)
boolean emailExists = partitionManager.createIdentityManager().createIdentityQuery(User.class) .setParameter(User.EMAIL, email).getResultCount() > 0;
I believe the proper way to do this is to use the User.EMAIL parameter in an IdentityQuery (which is a pretty cool API btw.)
boolean emailExists = partitionManager.createIdentityManager().createIdentityQuery(User.class) .setParameter(User.EMAIL, email).getResultCount() > 0;