package com.blueland.bo;

import com.blueland.model.Query;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data @EqualsAndHashCode(callSuper=false)
public class AppDatabaseEntity extends Query {
	private static final long serialVersionUID = 1L;
	//alias
	public static final String TABLE_ALIAS = "PfAppDatabase";
	
		
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	/**
	* 应用id       db_column: app_id 
	*/	
	@NotBlank @Length(max=50)
	private String appId;
	/**
	* 数据库类型（mysql；oracle；h2）       db_column: type_name 
	*/	
	@Length(max=20)
	private String typeName;
	/**
	* 数据库地址       db_column: url 
	*/	
	@Length(max=200)
	private String url;
	/**
	* 数据库实例名称       db_column: instance_name 
	*/	
	@Length(max=50)
	private String instanceName;
	/**
	* 数据库账号       db_column: username 
	*/	
	@Length(max=50)
	private String username;
	/**
	* 数据库密码       db_column: password 
	*/	
	@Length(max=50)
	private String password;
	/**
	* 数据库驱动名称       db_column: driver_name 
	*/	
	@Length(max=60)
	private String driverName;
	//columns END
		
}

