Last active
October 23, 2015 04:39
-
-
Save cosbor11/18df240457ed0699afd6 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 Skipper | |
| { | |
| @Identifier(generator = IdentifierGenerator.SEQUENCE) | |
| @Attribute | |
| protected long id; | |
| @Attribute | |
| protected String firstName; | |
| @Attribute | |
| protected String lastName; | |
| @Relationship(type = RelationshipType.ONE_TO_ONE, inverseClass = Sailboat.class, inverse = "skipper", cascadePolicy = CascadePolicy.NONE) | |
| protected Sailboat sailboat; | |
| // Getters and setters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment