Hibernate jpa training of X Plus Z.