package com.bocloud.ims.entity.resource.nsx;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.Generic;
import com.bocloud.entity.meta.PKStrategy;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * nsx负载均衡器-虚拟服务器关系
 * 
 * @author wangyu
 * @version 1.0
 * @since 2020年3月27日
 *
 */
@NoArgsConstructor
@AllArgsConstructor
@Table("nsx_lb_server_relation")
public class NsxLbServerRelation extends Generic {

	// id
	@Setter
	@Getter
	@PK(value = PKStrategy.AUTO)
	private Long id;
	// 负载均衡器id
	@Setter
	@Getter
	@Column("lb_id")
	private Long lbId;
	// 虚拟服务器id
	@Setter
	@Getter
	@Column("server_id")
	private Long serverId;
	@Setter
	@Getter
	// 云平台id
	@Column("vendor_id")
	private Long vendorId;

}
