@Override public void checkUniqueness(EntityKey key, Object object) throws HibernateException { final Object entity = getEntity( key ); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( key.getIdentifier(), key.getEntityName() ); } }
throw new NonUniqueObjectException( id, persister.getEntityName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );
@Override public void checkUniqueness(EntityKey key, Object object) throws HibernateException { final Object entity = getEntity( key ); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( key.getIdentifier(), key.getEntityName() ); } }
/** * Attempts to check whether the given key represents an entity already loaded within the * current session. * @param object The entity reference against which to perform the uniqueness check. * @throws HibernateException */ @Override public void checkUniqueness(EntityKey key, Object object) throws HibernateException { Object entity = getEntity(key); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( key.getIdentifier(), key.getEntityName() ); } }
/** * Attempts to check whether the given key represents an entity already loaded within the * current session. * @param object The entity reference against which to perform the uniqueness check. * @throws HibernateException */ public void checkUniqueness(EntityKey key, Object object) throws HibernateException { Object entity = getEntity(key); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( key.getIdentifier(), key.getEntityName() ); } }
/** * Attempts to check whether the given key represents an entity already loaded within the * current session. * @param object The entity reference against which to perform the uniqueness check. * @throws HibernateException */ @Override public void checkUniqueness(EntityKey key, Object object) throws HibernateException { Object entity = getEntity(key); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( key.getIdentifier(), key.getEntityName() ); } }
/** * Attempts to check whether the given key represents an entity already loaded within the * current session. * @param id The key to be checked. * @param object The entity reference against which to perform the uniqueness check. * @throws HibernateException */ public void checkUniqueness(Serializable id, EntityPersister persister, Object object) throws HibernateException { Object entity = getEntity( new EntityKey( id, persister, session.getEntityMode() ) ); if ( entity == object ) { throw new AssertionFailure( "object already associated, but no entry was found" ); } if ( entity != null ) { throw new NonUniqueObjectException( id, persister.getEntityName() ); } }
throw new NonUniqueObjectException( id, persister.getEntityName() );
throw new NonUniqueObjectException( id, persister.getEntityName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );
throw new NonUniqueObjectException( id, descriptor.getEntityName() );
throw new NonUniqueObjectException( id, persister.getEntityName() );
throw new NonUniqueObjectException( id, persister.getEntityName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );
throw new NonUniqueObjectException( event.getEntityId(), event.getEntityClassName() );