mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
Implement ParameterMementoImpl#resolve() method
This commit is contained in:
parent
72d06c164a
commit
8276bd569a
@ -13,7 +13,6 @@
|
||||
|
||||
import org.hibernate.CacheMode;
|
||||
import org.hibernate.FlushMode;
|
||||
import org.hibernate.NotYetImplementedFor6Exception;
|
||||
import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
||||
import org.hibernate.metamodel.model.domain.AllowableParameterType;
|
||||
import org.hibernate.procedure.ProcedureCall;
|
||||
@ -217,7 +216,25 @@ public AllowableParameterType getHibernateType() {
|
||||
|
||||
@Override
|
||||
public ProcedureParameterImplementor resolve(SharedSessionContractImplementor session) {
|
||||
throw new NotYetImplementedFor6Exception();
|
||||
if ( getName() != null ) {
|
||||
//noinspection unchecked
|
||||
return new ProcedureParameterImpl(
|
||||
getName(),
|
||||
getMode(),
|
||||
type,
|
||||
getHibernateType()
|
||||
);
|
||||
}
|
||||
else {
|
||||
//noinspection unchecked
|
||||
return new ProcedureParameterImpl(
|
||||
getPosition(),
|
||||
getMode(),
|
||||
type,
|
||||
getHibernateType()
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user