package com.example.demo.entity;

import javax.persistence.*;

@Entity
@Table(name = "app_adformats")
public class AdFormats {

	@Id
	@Column(name = "adformat_id")
	private int adFormatId;

	@Column(name = "name", columnDefinition = "VARCHAR(25)")
	private String name;

	@Column(name = "type", columnDefinition = "VARCHAR(10)")
	private String type;

	@Column(name = "format", columnDefinition = "TINYINT(1)")
	private int format;

	public AdFormats() {
		super();
	}

	public AdFormats(int adFormatId, String name, String type, int format) {
		super();
		this.adFormatId = adFormatId;
		this.name = name;
		this.type = type;
		this.format = format;
	}

	public int getAdFormatId() {
		return adFormatId;
	}

	public void setAdFormatId(int adFormatId) {
		this.adFormatId = adFormatId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getFormat() {
		return format;
	}

	public void setFormat(int format) {
		this.format = format;
	}

}
