Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35501 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class CatalogBrief {
6
 
7
    private int catalogId;
8
    private String modelName;
9
 
10
    public CatalogBrief(int catalogId, String modelName) {
11
        this.catalogId = catalogId;
12
        this.modelName = modelName;
13
    }
14
 
15
    public int getCatalogId() {
16
        return catalogId;
17
    }
18
 
19
    public String getModelName() {
20
        return modelName;
21
    }
22
 
23
    @Override
24
    public String toString() {
25
        return "CatalogBrief{" +
26
                "catalogId=" + catalogId +
27
                ", modelName='" + modelName + '\'' +
28
                '}';
29
    }
30
 
31
    @Override
32
    public boolean equals(Object o) {
33
        if (this == o) return true;
34
        if (o == null || getClass() != o.getClass()) return false;
35
        CatalogBrief that = (CatalogBrief) o;
36
        return catalogId == that.catalogId && Objects.equals(modelName, that.modelName);
37
    }
38
 
39
    @Override
40
    public int hashCode() {
41
        return Objects.hash(catalogId, modelName);
42
    }
43
}