Use either mappedBy="inviter" or mappedBy="invitee", it has to be a property name of account.PS targetEntity is not necessary in your case. It will be guessed from the method return type
I mean in @ManyToOne