remove warnings

####Reviewers
@hmunfru

####Description
refactor in order to remove some warnings when tomcat start and with some hibernate queries

####Testing
- unit testing
- war tested with jesuspg local cloud portal