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 journal_discount database table.
|
9
|
*
|
10
|
*/
|
11
|
@Entity
|
12
|
@Table(name="journal_discount")
|
13
|
@AssociationOverrides({
|
14
|
@AssociationOverride(name = "pk.journal",
|
15
|
joinColumns = @JoinColumn(name = "journal")),
|
16
|
@AssociationOverride(name = "pk.organization",
|
17
|
joinColumns = @JoinColumn(name = "organization")) })
|
18
|
public class JournalDiscount implements Serializable{
|
19
|
|
20
|
private static final long serialVersionUID = 1L;
|
21
|
|
22
|
@EmbeddedId
|
23
|
private JournalDiscountPK pk = new JournalDiscountPK();
|
24
|
private float discount;
|
25
|
|
26
|
public JournalDiscountPK getPk() {
|
27
|
return pk;
|
28
|
}
|
29
|
|
30
|
public void setPk(JournalDiscountPK pk) {
|
31
|
this.pk = pk;
|
32
|
}
|
33
|
|
34
|
public float getDiscount() {
|
35
|
return this.discount;
|
36
|
}
|
37
|
|
38
|
public void setDiscount(float discount) {
|
39
|
this.discount = discount;
|
40
|
}
|
41
|
|
42
|
}
|