Skip to content

Instantly share code, notes, and snippets.

@iromu
Created May 6, 2013 19:11
Show Gist options
  • Save iromu/5527343 to your computer and use it in GitHub Desktop.
Save iromu/5527343 to your computer and use it in GitHub Desktop.
@Entity
@Table(name = "ANIMAL_HISTORY")
public class AnimalHistory implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Getter
@Setter
private Long pk;
@Getter
@Setter
private String id;
@Getter
@Setter
private String name;
@Temporal(TemporalType.TIMESTAMP)
@Getter
@Setter
private java.util.Date start;
@Temporal(TemporalType.TIMESTAMP)
@Getter
@Setter
private java.util.Date end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment