Skip to content

Instantly share code, notes, and snippets.

@iromu
Created May 6, 2013 19:10
Show Gist options
  • Save iromu/5527335 to your computer and use it in GitHub Desktop.
Save iromu/5527335 to your computer and use it in GitHub Desktop.
@Entity
@Table(name = "ANIMAL")
@Customizer(AnimalCustomizer.class)
public class Animal extends AbstractPersistable<Long> {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Getter
@Setter
private Long id;
@Getter
@Setter
private String name;
public Animal(String name) {
this.name = name;
}
public Animal() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment