Last active
September 27, 2015 20:26
-
-
Save cosbor11/7e6fa5cb490c9148f280 to your computer and use it in GitHub Desktop.
onyx person entity 2
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
| package com.onyxdevtools.quickstart.entities; | |
| import com.onyx.persistence.ManagedEntity; | |
| import com.onyx.persistence.annotations.*; | |
| import java.util.Date; | |
| @Entity | |
| public class Person extends ManagedEntity | |
| { | |
| @Attribute | |
| @Identifier(generator = IdentifierGenerator.SEQUENCE) | |
| private String id; | |
| @Attribute(nullable=false) | |
| private Date dateCreated; | |
| @Attribute | |
| private Date dateUpdated; | |
| @Attribute(nullable=false) | |
| private String firstName; | |
| @Attribute(nullable=false) | |
| private String lastName; | |
| //getters & setters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment