Subversion Repositories SmartDukaan

Rev

Rev 24098 | Go to most recent revision | 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.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "dtr.notification_data", schema = "dtr")
public class NotificationData {

        @Id
        @Column(name = "id", unique = true, updatable = false)
        private int id;

        @Column(name = "data")
        private String data;

        @Column(name = "created_timestamp")
        private LocalDateTime created_timestamp = LocalDateTime.now();

        @Column(name = "active")
        private boolean active;

        public boolean isActive() {
                return active;
        }

        public void setActive(boolean active) {
                this.active = active;
        }

        public int getId() {
                return id;
        }

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

        public String getData() {
                return data;
        }

        public void setData(String data) {
                this.data = data;
        }

        public LocalDateTime getCreated_timestamp() {
                return created_timestamp;
        }

        public void setCreated_timestamp(LocalDateTime created_timestamp) {
                this.created_timestamp = created_timestamp;
        }

        @Override
        public String toString() {
                return "NotificationData [id=" + id + ", data=" + data + ", created_timestamp=" + created_timestamp
                                + ", active=" + active + "]";
        }


}