Last active
October 23, 2015 04:35
-
-
Save cosbor11/eca89dbea095873f45ba 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
| // Create a new sailboat named Wind Passer and Registration(Primary Key) NCC1701 | |
| Sailboat sailboat = new Sailboat(); | |
| sailboat.setRegistrationCode("NCC1701"); | |
| sailboat.setName("Wind Passer"); | |
| // Create a new Skipper named Martha McFly | |
| Skipper sailboatSkipper = new Skipper(); | |
| sailboatSkipper.setFirstName("Martha"); | |
| sailboatSkipper.setLastName("McFly"); | |
| // Define the relationship | |
| sailboat.setSkipper(sailboatSkipper); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment