Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
32339 tejbeer 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import java.util.List;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
import javax.persistence.Transient;
12
 
13
@Entity
14
@Table(name = "catalog.combo_option")
15
public class ComboOption {
16
 
17
 
18
    @Id
19
    @Column(name = "id", columnDefinition = "int(11)")
20
    @GeneratedValue(strategy = GenerationType.IDENTITY)
21
    private int id;
22
 
23
    @Column(name = "combo_id")
24
    private int comboId;
25
 
26
    @Transient
27
    private List<ComboMappedModel> comboMappedModels;
28
 
29
 
30
    public int getId() {
31
        return id;
32
    }
33
 
34
    public void setId(int id) {
35
        this.id = id;
36
    }
37
 
38
    public int getComboId() {
39
        return comboId;
40
    }
41
 
42
    public void setComboId(int comboId) {
43
        this.comboId = comboId;
44
    }
45
 
46
 
47
    public List<ComboMappedModel> getComboMappedModels() {
48
        return comboMappedModels;
49
    }
50
 
51
    public void setComboMappedModels(List<ComboMappedModel> comboMappedModels) {
52
        this.comboMappedModels = comboMappedModels;
53
    }
54
 
55
    @Override
56
    public String toString() {
57
        return "ComboOption [id=" + id + ", comboId=" + comboId + ", comboMappedModels=" + comboMappedModels + "]";
58
    }
59
 
60
 
61
}
62