public HibernateObjectRetrievalFailureException(WrongClassException ex) { super(ex.getEntityName(), ex.getIdentifier(), ex.getMessage(), ex); }
throw new WrongClassException( "Discriminator: " + discriminatorValue, id,
private static net.sf.hibernate.WrongClassException adaptWrongClassException( final org.hibernate.WrongClassException ex) { final String message = ex.getMessage(); return new net.sf.hibernate.WrongClassException(ex.getMessage(), ex.getIdentifier(), null) { @Override public String getMessage() { return message; } @Override public String toString() { return toStringWithClassName(this, net.sf.hibernate.WrongClassException.class); } }; }
return new ObjectRetrievalFailureException(hibEx.getEntityName(), hibEx.getIdentifier(), ex.getMessage(), ex);
throws HibernateException, SQLException { if ( !persister.isInstance( object ) ) { throw new WrongClassException( "loaded object was of wrong class " + object.getClass(), key.getIdentifier(),
return new ObjectRetrievalFailureException(hibEx.getEntityName(), hibEx.getIdentifier(), ex.getMessage(), ex);
throw new WrongClassException( "loaded object was of wrong class " + entity.getClass(), event.getEntityId(),
public HibernateObjectRetrievalFailureException(WrongClassException ex) { super(ex.getEntityName(), ex.getIdentifier(), ex.getMessage(), ex); }
throw new WrongClassException( "Discriminator: " + discriminatorValue, entityKey.getIdentifier(),
public HibernateObjectRetrievalFailureException(WrongClassException ex) { super(ex.getEntityName(), ex.getIdentifier(), ex.getMessage(), ex); }
throw new WrongClassException( "loaded object was of wrong class " + existing.getClass(), entityKey.getIdentifier(),
public HibernateObjectRetrievalFailureException(WrongClassException ex) { super(ex.getEntityName(), ex.getIdentifier(), ex.getMessage(), ex); }
throw new WrongClassException( "class of the given object did not match class of persistent copy", event.getRequestedId(),
public HibernateObjectRetrievalFailureException(WrongClassException ex) { super(ex.getEntityName(), ex.getIdentifier(), ex.getMessage(), ex); }
throw new WrongClassException( "Discriminator: " + discriminatorValue, id,
throw new WrongClassException( "Discriminator: " + discriminatorValue, id,
throw new WrongClassException( "Discriminator: " + discriminatorValue, id,
throw new WrongClassException( "Discriminator: " + discriminatorValue, id,
throw new WrongClassException( "loaded object was of wrong class " + entity.getClass(), event.getEntityId(),
throws HibernateException, SQLException { if ( !persister.isInstance( object ) ) { throw new WrongClassException( "loaded object was of wrong class " + object.getClass(), key.getIdentifier(),