Created
October 23, 2015 07:06
-
-
Save cosbor11/cdfa08f2f82c844c3e16 to your computer and use it in GitHub Desktop.
onyx web person entity
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 Long personId; | |
| @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