Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31618 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
7
import java.time.LocalDate;
8
import java.util.Objects;
9
 
10
@Entity
11
@Table(name="fofo.samsung_pcm",schema="fofo")
12
public class SamsungPCM {
13
    @Id
14
    @Column(name="fofo_id")
15
    private int fofoId;
16
 
17
    @Column(name="pcm_date")
18
    private LocalDate pcmDate;
19
 
20
    public int getFofoId() {
21
        return fofoId;
22
    }
23
 
24
    public void setFofoId(int fofoId) {
25
        this.fofoId = fofoId;
26
    }
27
 
28
    public LocalDate getPcmDate() {
29
        return pcmDate;
30
    }
31
 
32
    public void setPcmDate(LocalDate pcmDate) {
33
        this.pcmDate = pcmDate;
34
    }
35
 
36
    @Override
37
    public boolean equals(Object o) {
38
        if (this == o) return true;
39
        if (o == null || getClass() != o.getClass()) return false;
40
        SamsungPCM that = (SamsungPCM) o;
41
        return fofoId == that.fofoId && Objects.equals(pcmDate, that.pcmDate);
42
    }
43
 
44
    @Override
45
    public int hashCode() {
46
        return Objects.hash(fofoId, pcmDate);
47
    }
48
 
49
    @Override
50
    public String toString() {
51
        return "SamsungPCM{" +
52
                "fofoId=" + fofoId +
53
                ", pcmDate=" + pcmDate +
54
                '}';
55
    }
56
}