Gerrick and Gavin, thank you for your fast response.
As Derrick suggested, we modified our hbm files and classes with java.lang.* types (java.lang.Long instead of long). Now we can retrieve records with null fields.
However, since our application will be big and we'll have lots of simultaneous users and batch processes accessing the db and creating lots of objects, we're afraid the large number of class instances will take lot more memory when the properties are declared as objects, instead of primitive types. This might be an issue about our application's memory requirements.
We're new to hibernate and object based programming (we live in a relational world), so some our concerns might sound trivial. Do you think the above comments are correct ?
Regards,
Bulent Erdemir
|