Last active
September 27, 2015 07:30
-
-
Save cosbor11/0a4748617282b789407d to your computer and use it in GitHub Desktop.
onyx person entity
This file contains 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 | |
{ | |
@Identifier | |
@Attribute | |
public Integer id; | |
@Attribute(nullable=false) | |
public Date dateCreated; | |
@Attribute | |
public Date dateUpdated; | |
@Attribute(nullable=false) | |
public String firstName; | |
@Attribute(nullable=false) | |
public String lastName; | |
//getters & setters | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment