/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/db/Teach.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-28 14:01:22 UTC
  • mfrom: (15.1.10 magstudentportal-more-db)
  • Revision ID: gustav.hartvigsson@gmail.com-20170828140122-dfqs6oxweh0zjzlj
* Merged stuff into trunk

Show diffs side-by-side

added added

removed removed

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