}
public static void deleteByGroupId(Long groupId) {
// GroupAuthorityEntity role;
try {
Objectify ofy = OS.begin();
// OQuery<GroupAuthorityEntity> q = OS
// .createQuery(GroupAuthorityEntity.class);
Query<GroupAuthorityEntity> q = ofy.query(GroupAuthorityEntity.class);
q.filter("groupId", groupId);
// Iterable<GroupAuthorityEntity> it = ofy.prepare(q).asIterable();
ofy.delete(q);
// for (GroupAuthorityEntity groupAuthorityEntity : q) {
// ofy.delete(groupAuthorityEntity);
// }
} catch (NullPointerException npe) {
}