@Override public int hashCode() { return factoryKey.hashCode(); }
/** * Create new key instance with other factory name. * * @param newFactoryName New factory name for existing key. * @return New key instance with other factory name. */ public PersistenceContextKey clone(String newFactoryName) { return new PersistenceContextKey(factoryKey.clone(newFactoryName)); }