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
11 * Abteilungsklasse (Generator-Beispielcode).
\r
17 @Table(name = "ABTEILUNG")
\r
18 public class Department {
\r
21 @Column(name = "OID")
\r
22 @GeneratedValue(strategy = GenerationType.AUTO)
\r
25 @Column(name = "name", nullable = false)
\r
26 private String name;
\r
28 public long getOid() {
\r
32 public void setOid(long oid) {
\r
36 public String getName() {
\r
40 public void setName(String name) {
\r