@Override public Object proxyFor(Object impl) throws HibernateException { final EntityEntry e = getEntry( impl ); if ( e == null ) { return impl; } return proxyFor( e.getPersister(), e.getEntityKey(), impl ); }
EntityEntry e = persistenceContext.getEntry( object ); if ( e != null ) { doEvict( object, e.getEntityKey(), e.getPersister(), source );
persistenceContext.removeEntity( entry.getEntityKey() ); persistenceContext.removeProxy( entry.getEntityKey() );
final Object proxy = persistenceContext.getProxy( entityEntry.getEntityKey() ); if ( proxy != null ) {
public boolean isNullifiable(boolean earlyInsert, SessionImplementor session) { return getStatus() == Status.SAVING || ( earlyInsert ? !isExistsInDatabase() : session.getPersistenceContext().getNullifiableEntityKeys() .contains( getEntityKey() ) ); }
public boolean isNullifiable(boolean earlyInsert, SessionImplementor session) { return getStatus() == Status.SAVING || ( earlyInsert ? !isExistsInDatabase() : session.getPersistenceContext().getNullifiableEntityKeys() .contains( getEntityKey() ) ); }
/** * Return the existing proxy associated with the given <tt>EntityKey</tt>, or the * argument (the entity associated with the key) if no proxy exists. * (slower than the form above) */ @Override public Object proxyFor(Object impl) throws HibernateException { EntityEntry e = getEntry(impl); return proxyFor( e.getPersister(), e.getEntityKey(), impl ); }
/** * Return the existing proxy associated with the given <tt>EntityKey</tt>, or the * argument (the entity associated with the key) if no proxy exists. * (slower than the form above) */ @Override public Object proxyFor(Object impl) throws HibernateException { EntityEntry e = getEntry(impl); return proxyFor( e.getPersister(), e.getEntityKey(), impl ); }
@Override public Object proxyFor(Object impl) throws HibernateException { final EntityEntry e = getEntry( impl ); if ( e == null ) { return impl; } return proxyFor( e.getDescriptor(), e.getEntityKey(), impl ); }
EntityEntry e = persistenceContext.removeEntry( object ); if ( e != null ) { persistenceContext.removeEntity( e.getEntityKey() ); doEvict( object, e.getEntityKey(), e.getPersister(), source );
EntityEntry e = persistenceContext.removeEntry( object ); if ( e != null ) { persistenceContext.removeEntity( e.getEntityKey() ); doEvict( object, e.getEntityKey(), e.getPersister(), source );
EntityEntry e = persistenceContext.getEntry( object ); if ( e != null ) { doEvict( object, e.getEntityKey(), e.getDescriptor(), source );
persistenceContext.removeEntity( entry.getEntityKey() ); persistenceContext.removeProxy( entry.getEntityKey() );
persistenceContext.removeEntity( entry.getEntityKey() ); persistenceContext.removeProxy( entry.getEntityKey() );
persistenceContext.removeEntity( entry.getEntityKey() ); persistenceContext.removeProxy( entry.getEntityKey() );
Object proxy = persistenceContext.getProxy( entityEntry.getEntityKey() ); if ( proxy != null ) {
Object proxy = persistenceContext.getProxy( entityEntry.getEntityKey() ); if ( proxy != null ) {