Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Last active September 27, 2015 20:26
Show Gist options
  • Select an option

  • Save cosbor11/7e6fa5cb490c9148f280 to your computer and use it in GitHub Desktop.

Select an option

Save cosbor11/7e6fa5cb490c9148f280 to your computer and use it in GitHub Desktop.
onyx person entity 2
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