Hibernate done based on XML