Last active
October 23, 2015 04:33
-
-
Save cosbor11/8e56ad32eb369fc20fef to your computer and use it in GitHub Desktop.
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
| @Entity | |
| public class CrewMember | |
| { | |
| @Identifier(generator = IdentifierGenerator.SEQUENCE) | |
| @Attribute | |
| public long id; | |
| @Attribute | |
| public String firstName; | |
| @Attribute | |
| public String lastName; | |
| @Relationship(type = RelationshipType.MANY_TO_ONE, | |
| inverseClass = Sailboat.class, | |
| inverse = "crew", | |
| cascadePolicy = CascadePolicy.NONE) | |
| public Sailboat sailboat; | |
| // getters and setters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment