1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.imca.model.entities;
17
18 import javax.persistence.Entity;
19 import javax.persistence.GeneratedValue;
20 import javax.persistence.GenerationType;
21 import javax.persistence.Id;
22 import javax.persistence.NamedQueries;
23 import javax.persistence.NamedQuery;
24
25
26
27
28
29
30
31
32 @Entity
33 @NamedQueries( {
34 @NamedQuery(name = "FeeBasicSearch",
35 query = "SELECT o FROM FeeEntity o WHERE o.currency LIKE :search")
36 })
37 public class FeeEntity {
38
39
40
41
42 @Id
43 @GeneratedValue(strategy=GenerationType.TABLE)
44 private long id;
45
46 private double amount;
47
48 private String currency = "";
49
50 public double getAmount() {
51 return amount;
52 }
53
54 public void setAmount(double amount) {
55 this.amount = amount;
56 }
57
58 public String getCurrency() {
59 return currency;
60 }
61
62 public void setCurrency(String currency) {
63 this.currency = currency;
64 }
65
66 public long getId() {
67 return id;
68 }
69
70 public void setId(long id) {
71 this.id = id;
72 }
73
74
75
76
77
78 public String toString(){
79 return this.currency + " " + amount;
80 }
81 }