Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import java.io.Serializable;
4
import javax.persistence.*;
5

    
6

    
7
/**
8
 * The persistent class for the publisher_discount database table.
9
 * 
10
 */
11
@Entity
12
@Table(name="publisher_discount")
13
@NamedQuery(name="PublisherDiscount.findAll", query="SELECT p FROM PublisherDiscount p")
14
public class PublisherDiscount implements Serializable {
15
	private static final long serialVersionUID = 1L;
16

    
17
	private float discount;
18

    
19
	@Id
20
	@ManyToOne
21
    @JoinColumn(name = "organization")
22
	private Organization organization;
23

    
24
	@Id
25
	@ManyToOne
26
    @JoinColumn(name = "publisher")
27
	private Publisher publisher;
28

    
29
	public PublisherDiscount() {
30
	}
31

    
32
	public float getDiscount() {
33
		return this.discount;
34
	}
35

    
36
	public void setDiscount(float discount) {
37
		this.discount = discount;
38
	}
39

    
40
	public Organization getOrganisation() {
41
		return this.organization;
42
	}
43

    
44
	public void setOrganisation(Organization organization) {
45
		this.organization = organization;
46
	}
47

    
48
	public Publisher getPublisher() {
49
		return this.publisher;
50
	}
51

    
52
	public void setPublisher(Publisher publisher) {
53
		this.publisher = publisher;
54
	}
55

    
56
}
(75-75/94)