1 |
45968
|
panagiotis
|
package eu.dnetlib.goldoa.domain;
|
2 |
|
|
|
3 |
|
|
import java.io.Serializable;
|
4 |
|
|
import javax.persistence.*;
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
@Entity
|
8 |
|
|
@Table(name="publisher_discount")
|
9 |
|
|
@AssociationOverrides({
|
10 |
|
|
@AssociationOverride(name = "pk.publisher",
|
11 |
|
|
joinColumns = @JoinColumn(name = "publisher")),
|
12 |
|
|
@AssociationOverride(name = "pk.organization",
|
13 |
|
|
joinColumns = @JoinColumn(name = "organization")) })
|
14 |
|
|
public class PublisherDiscount implements Serializable{
|
15 |
|
|
|
16 |
|
|
private static final long serialVersionUID = 1L;
|
17 |
|
|
|
18 |
|
|
@EmbeddedId
|
19 |
|
|
private PublisherDiscountPK pk = new PublisherDiscountPK();
|
20 |
|
|
private float discount;
|
21 |
|
|
|
22 |
|
|
public PublisherDiscountPK getPk() {
|
23 |
|
|
return pk;
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
public void setPk(PublisherDiscountPK pk) {
|
27 |
|
|
this.pk = pk;
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
public float getDiscount() {
|
31 |
|
|
return this.discount;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
public void setDiscount(float discount) {
|
35 |
|
|
this.discount = discount;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
}
|