Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Last active September 27, 2015 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosbor11/0a4748617282b789407d to your computer and use it in GitHub Desktop.
Save cosbor11/0a4748617282b789407d to your computer and use it in GitHub Desktop.
onyx person entity
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