super(entityName); this.actions = actions;
if ( !(obj instanceof HibernatePermission) ) return false; HibernatePermission permission = (HibernatePermission) obj; return permission.getName().equals( getName() ) && permission.getActions().equals(actions);
return actions;
return getName().hashCode() * 37 + actions.hashCode();
//TODO! return ( "*".equals( getName() ) || getName().equals( permission.getName() ) ) && ( "*".equals(actions) || actions.indexOf( permission.getActions() ) >= 0 );
return "HibernatePermission(" + getName() + ':" + actions + ')";