1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package DB;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the teaches database table.
*
*/
@Entity
@Table(name="teaches")
@NamedQuery(name="Teach.findAll", query="SELECT t FROM Teach t")
public class Teach implements Serializable {
private static final long serialVersionUID = 1L;
private TeachPK id;
public Teach() {
}
@EmbeddedId
public TeachPK getId() {
return this.id;
}
public void setId(TeachPK id) {
this.id = id;
}
}
|