Integer typeId = Integer.valueOf(input_type_id);
SbiDomains parameterType = (SbiDomains) aSession.load(
SbiDomains.class, typeId);
SbiParameters hibParameters = new SbiParameters();
hibParameters.setDescr(aParameter.getDescription());
hibParameters.setLength(new Short(aParameter.getLength()
.shortValue()));
hibParameters.setLabel(aParameter.getLabel());
hibParameters.setName(aParameter.getName());
hibParameters.setParameterTypeCode(input_type_cd);
hibParameters.setMask(aParameter.getMask());
hibParameters.setParameterType(parameterType);
if (aParameter.isFunctional()) hibParameters.setFunctionalFlag(new Short((short) 1));
else hibParameters.setFunctionalFlag(new Short((short) 0));
if (aParameter.isTemporal()) hibParameters.setTemporalFlag(new Short((short) 1));
else hibParameters.setTemporalFlag(new Short((short) 0));
updateSbiCommonInfo4Insert(hibParameters);
aSession.save(hibParameters);
tx.commit();
} catch (HibernateException he) {
logException(he);