Last active
October 23, 2015 04:32
-
-
Save cosbor11/1ebb84bd822ff321b873 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 Sailboat | |
| { | |
| @Identifier | |
| @Attribute | |
| protected String registrationCode; | |
| @Attribute | |
| protected String name; | |
| @Relationship(type = RelationshipType.ONE_TO_ONE, | |
| inverseClass = Skipper.class, | |
| inverse = "sailboat", | |
| cascadePolicy = CascadePolicy.ALL) | |
| protected Skipper skipper; | |
| // getters and setters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment