Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 1997-2013, tinygroup.org (luo_guo@live.cn). Licensed under the GPL, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl.html Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -------------------------------------------------------------------------- 版权 (c) 1997-2013, tinygroup.org (luo_guo@live.cn). 本开源软件遵循 GPL 3.0 协议; 如果您不遵循此协议,则不被允许使用此文件。 你可以从下面的地址获取完整的协议文本 http://www.gnu.org/licenses/gpl.html
 
 package org.tinygroup.mda.config.entity;
 
 import java.util.List;
 
 
模型的属性

Author(s):
luoguo
 
 @XStreamAlias("entity-field")
 public class EntityField {

标准字段名
 
 	@XStreamAlias("standard-field")
 	private String standardFieldId;
是否主键
 
 	private boolean primary;
是否唯一
 
 	private boolean unique;
是否显示字段
 
 	private boolean display;
输入方式,每种方式可以有自己的属性,目前是该输入模式处理器的beanid
 
 	@XStreamAlias("input-mode")
 	private String inputMode
验证规则,这个和校验框架对接,每种方式可以有种的属性
 
 	@XStreamAlias("validate-rules")
实体名称,如果存在,就表示是一个对象引用
 
 	@XStreamAlias("entity-uuid")
 	private String entityuuid
唯一决定一个字段
 
 	private String uuid;
 	
 	
 
 	public String getEntityuuid() {
 		return ;
 	}
 
 	public void setEntityuuid(String entityuuid) {
 		this. = entityuuid;
 	}
 
 	public String getUuid() {
 		return ;
 	}
 
	public void setUuid(String uuid) {
		this. = uuid;
	}
	}
	public void setStandardFieldId(String standardFieldId) {
		this. = standardFieldId;
	}
	public boolean isPrimary() {
		return ;
	}
	public void setPrimary(boolean primary) {
		this. = primary;
	}
	public boolean isUnique() {
		return ;
	}
	public void setUnique(boolean unique) {
		this. = unique;
	}
	public boolean isDisplay() {
		return ;
	}
	public void setDisplay(boolean display) {
		this. = display;
	}
	public String getInputMode() {
		return ;
	}
	public void setInputMode(String inputMode) {
		this. = inputMode;
	}
		if(==null)
	}
	public void setValidateRules(List<ValidateRulevalidateRules) {
		this. = validateRules;
	}
New to GrepCode? Check out our FAQ X