Refactor of hierarchy
Added exists method to avoid sqlexceptions
Added hibernate validation
Added identifiable object and test