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 public UncheckedProduct() {
11 id = null;
12 product = null;
13 }
14
15 public UncheckedProduct(Integer id) {
16 this.id = id;
17 product = null;
18 }
19
20 public UncheckedProduct(Persistable p) {
21 product = p;
22 id = p.getTroid();
23 }
24
25 public Integer getId() {
26 return id;
27 }
28
29 public Persistable getProduct() {
30 return product;
31 }
32
33 }