Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created July 7, 2016 14:44
Show Gist options
  • Save cosbor11/af5ede070beb1ce3df80d2b3fcbf0396 to your computer and use it in GitHub Desktop.
Save cosbor11/af5ede070beb1ce3df80d2b3fcbf0396 to your computer and use it in GitHub Desktop.
Modify the Invoice entity to have a relationship type of ONE_TO_MANY
@Relationship(type = RelationshipType.ONE_TO_MANY,
inverse = "invoice",
inverseClass = Payment.class,
cascadePolicy = CascadePolicy.SAVE,
fetchPolicy = FetchPolicy.EAGER)
protected List<Payment> payments;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment