1 | public class EntityWithCrazyCompositeKey {↵ | | 1 | public static final class Component {↵
|
2 | private CrazyCompositeKey id;↵ | | 2 | private Calendar cal;↵
|
3 | private String name;↵ | | 3 | private ↵
|
|
4 | public CrazyCompositeKey↵ | | 4 | Float floaty;↵
|
| | | 5 | /**↵
|
| | | 6 | * Returns the cal.↵
|
| | | 7 | * @return Calendar↵
|
| | | 8 | */↵
|
5 | getId() {↵ | | 9 | public Calendar getCal() {↵
|
6 | return id;↵ | | 10 | return cal;↵
|
7 | }↵ | | 11 | }↵
|
|
8 | public void setId(CrazyCompositeKey id↵ | | 12 | ↵
|
| | | 13 | /**↵
|
| | | 14 | * Sets the cal.↵
|
| | | 15 | * @param cal The cal to set↵
|
| | | 16 | */↵
|
9 | ) {↵ | | 17 | public void setCal(Calendar cal) {↵
|
10 | this.id = id;↵ | | 18 | this.cal = cal;↵
|
11 | }↵ | | 19 | }↵
|
|
| | | 20 | ↵
|
| | | 21 | /**↵
|
| | | 22 | * Returns the floaty.↵
|
| | | 23 | * @return Float↵
|
| | | 24 | */↵
|
12 | public String getName() {↵ | | 25 | public Float getFloaty() {↵
|
13 | return name;↵ | | 26 | return floaty;↵
|
14 | }↵ | | 27 | }↵
|
|
15 | public void setName(String name↵ | | 28 | ↵
|
| | | 29 | /**↵
|
| | | 30 | * Sets the floaty.↵
|
| | | 31 | * @param floaty The floaty to set↵
|
| | | 32 | */↵
|
16 | ) {↵ | | 33 | public void setFloaty(Float floaty) {↵
|
17 | this.name = name;↵ | | 34 | this.floaty = floaty;↵
|
18 | | | 35 |
|