1 | |
package org.paneris.jammyjoes.mvp; |
2 | |
|
3 | |
import org.melati.poem.Persistable; |
4 | |
|
5 | |
public class UncheckedProduct { |
6 | |
|
7 | |
private Integer id; |
8 | |
private Persistable product; |
9 | |
|
10 | 0 | public UncheckedProduct() { |
11 | 0 | id = null; |
12 | 0 | product = null; |
13 | 0 | } |
14 | |
|
15 | 18 | public UncheckedProduct(Integer id) { |
16 | 18 | this.id = id; |
17 | 18 | product = null; |
18 | 18 | } |
19 | |
|
20 | 2 | public UncheckedProduct(Persistable p) { |
21 | 2 | product = p; |
22 | 2 | id = p.getTroid(); |
23 | 2 | } |
24 | |
|
25 | |
public Integer getId() { |
26 | 3 | return id; |
27 | |
} |
28 | |
|
29 | |
public Persistable getProduct() { |
30 | 0 | return product; |
31 | |
} |
32 | |
|
33 | |
} |