1 package de.test.schemaexport.domain;
\r
3 import javax.persistence.Column;
\r
4 import javax.persistence.Entity;
\r
5 import javax.persistence.GeneratedValue;
\r
6 import javax.persistence.GenerationType;
\r
7 import javax.persistence.Id;
\r
8 import javax.persistence.Table;
\r
9 import org.hibernate.annotations.Type;
\r
12 * Abteilungsklasse (Generator-Beispielcode).
\r
18 @Table(name = "ABTEILUNG")
\r
19 public class Department {
\r
22 @Column(name = "OID")
\r
23 @GeneratedValue(strategy = GenerationType.AUTO)
\r
26 @Column(name = "name", nullable = false)
\r
27 private String name;
\r
29 @Type(type = "genderType")
\r
30 private Gender gender;
\r
32 public long getOid() {
\r
36 public void setOid(long oid) {
\r
40 public String getName() {
\r
44 public void setName(String name) {
\r