Created
July 7, 2016 14:44
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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