Hibernate db fix

Hibernate db fix + tests up

Issue-ID: PORTAL-710
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Change-Id: I9b799399c08918322e9665e44b42b2e59bb7420b
63 files changed