Subversion Repositories SmartDukaan

Rev

Rev 26588 | 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.catalog;

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

@Entity
@Table(name = "catalog.offer_margin", schema = "catalog")
public class Offermargin {
        @Id
        @Column(name = "id", unique = true, updatable = false)
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

        @Column(name = "offer_id")
        private int offerId;

        @Column(name = "value")
        private int value;

        @Column(name = "margin")
        private double margin;

        public int getId() {
                return id;
        }

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

        public int getOfferId() {
                return offerId;
        }

        public void setOfferId(int offerId) {
                this.offerId = offerId;
        }

        public int getValue() {
                return value;
        }

        public void setValue(int value) {
                this.value = value;
        }

        public double getMargin() {
                return margin;
        }

        public void setMargin(double margin) {
                this.margin = margin;
        }

        @Override
        public String toString() {
                return "Offermargin [id=" + id + ", offerId=" + offerId + ", value=" + value + ", margin=" + margin + "]";
        }

}