Subversion Repositories SmartDukaan

Rev

Rev 31618 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31618 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
31706 amit.gupta 3
import com.spice.profitmandi.dao.convertor.LocalDateAttributeConverter;
4
 
5
import javax.persistence.*;
31618 amit.gupta 6
import java.time.LocalDate;
7
import java.util.Objects;
8
 
9
@Entity
10
@Table(name="fofo.samsung_pcm",schema="fofo")
11
public class SamsungPCM {
12
    @Id
13
    @Column(name="fofo_id")
14
    private int fofoId;
15
 
31706 amit.gupta 16
    @Convert(converter = LocalDateAttributeConverter.class)
17
    @Column(name = "pcm_date")
31618 amit.gupta 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
}