Subversion Repositories SmartDukaan

Rev

Rev 27417 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.dtr;

import java.time.LocalDateTime;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;

@Entity
@Table(name = "dtr.hypertrack_key")
public class HypertrackKey {

        @Id
        @Column(name = "id", updatable = false, unique = true)
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

        @Column(name = "device_id")
        private int deviceId;

        @Column(name = "user_id")
        private int userId;

        @Column(name = "hypertrack_key_id")
        private String hypertrackKeyId;

        @Convert(converter = LocalDateTimeAttributeConverter.class)
        @Column(name = "created_timestamp", updatable = false)
        private LocalDateTime createdTimestamp;

        @Convert(converter = LocalDateTimeAttributeConverter.class)
        @Column(name = "updated_timestamp")
        private LocalDateTime updatedTimestamp;

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public int getDeviceId() {
                return deviceId;
        }

        public void setDeviceId(int deviceId) {
                this.deviceId = deviceId;
        }

        public int getUserId() {
                return userId;
        }

        public void setUserId(int userId) {
                this.userId = userId;
        }

        public String getHypertrackKeyId() {
                return hypertrackKeyId;
        }

        public void setHypertrackKeyId(String hypertrackKeyId) {
                this.hypertrackKeyId = hypertrackKeyId;
        }

        public LocalDateTime getCreatedTimestamp() {
                return createdTimestamp;
        }

        public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
                this.createdTimestamp = createdTimestamp;
        }

        public LocalDateTime getUpdatedTimestamp() {
                return updatedTimestamp;
        }

        public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
                this.updatedTimestamp = updatedTimestamp;
        }

        @Override
        public String toString() {
                return "HypertrackKey [id=" + id + ", deviceId=" + deviceId + ", userId=" + userId + ", hypertrackKeyId="
                                + hypertrackKeyId + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp
                                + "]";
        }

}