package org.jpos.tcpay.db.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

@Data
@Accessors(chain = true)
@Entity
@Table(name = "pos_merchant")
public class PosMerchant {
    @Id
    @GeneratedValue
    long id;

    @Column(name="merchantid")
    String merchantid;

    @Column(name="merchant_name")
    String merchantName;

    @OneToOne
    @JoinColumn(name = "address_id")
    Address address;

}
