basic entity operations

+hibernate orm modifications and fixes