Hi,
There is an application that needed to be migrated from Hibernate 3.2 to 4.0. It seems the SerializableBlob class and createBlob() method are deprecated and removed. Can any one guide me or give me any example on how to make changes to migrate hibernate 4 on the following code:
Code:
public void updateStaffBiometric(StaffBiometrics staffBiometrics)
throws BaseAppException {
StaffBiometrics localStaffBiometrics = getStaffBiometricsDao().
findStaffBiometricsByStaffId(staffBiometrics.getStaffId());
SerializableBlob blobBio1 = (SerializableBlob)Hibernate.createBlob(staffBiometrics.getBioByte1());
SerializableBlob blobBio2 = (SerializableBlob)Hibernate.createBlob(staffBiometrics.getBioByte2());
localStaffBiometrics.setBiometrics1(blobBio1);
localStaffBiometrics.setBiometrics2(blobBio2);
....
}
Please.. any help is highly appreciated.