mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
unwrap should raise a PE if the type is not unwrappable by the provider
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18166 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
cab99355a9
commit
48c2ec7e91
@ -645,8 +645,10 @@ public <T> T unwrap(Class<T> clazz) {
|
||||
if ( clazz.equals( SessionImplementor.class ) ) {
|
||||
return ( T ) getSession();
|
||||
}
|
||||
//FIXME
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
else {
|
||||
//unknown class type
|
||||
throw new PersistenceException( "Hibernate cannot unwrap " + clazz);
|
||||
}
|
||||
}
|
||||
|
||||
private void joinTransaction(boolean ignoreNotJoining) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user