package com.icontrols.oauth.model;

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 = "complex_info")
public class ComplexInfo {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;
	@Column(name = "name")
	private String complexName;
	@Column(name = "code")
	private String complexCode;
	@Column(name = "ip")
	private String complexIp;

	public Long getId() {
		return id;
	}

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

	public String getComplexName() {
		return complexName;
	}

	public void setComplexName(String complexName) {
		this.complexName = complexName;
	}

	public String getComplexCode() {
		return complexCode;
	}

	public void setComplexCode(String complexCode) {
		this.complexCode = complexCode;
	}

	public String getComplexIp() {
		return complexIp;
	}

	public void setComplexIp(String complexIp) {
		this.complexIp = complexIp;
	}

	public ComplexInfo(Long id, String complexName, String complexCode, String complexIp) {
		super();
		this.id = id;
		this.complexName = complexName;
		this.complexCode = complexCode;
		this.complexIp = complexIp;
	}

	public ComplexInfo() {
		super();
	}

	@Override
	public String toString() {
		return "ComplexInfo [id=" + id + ", complexName=" + complexName + ", complexCode=" + complexCode
				+ ", complexIp=" + complexIp + "]";
	}

}
