Hibernate /Json

Some issues has been found regarding to conversion from POJO to JSON.