Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created July 7, 2016 14:43
Show Gist options
  • Save cosbor11/905faffcfc6a35777699895ec7339891 to your computer and use it in GitHub Desktop.
Save cosbor11/905faffcfc6a35777699895ec7339891 to your computer and use it in GitHub Desktop.
Modify the Payment entity to have a relationship type of MANY_TO_ONE
@Relationship(type = RelationshipType.MANY_TO_ONE,
inverse = "payments",
inverseClass = Invoice.class)
protected Invoice invoice;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment