View Javadoc
1   package gboat2.attachment.model;
2   
3   /**
4    * Copyright By Grandsoft Company Limited.  
5    * 2012-4-13 下午01:57:18
6    */
7   
8   import gboat2.base.core.annotation.Field;
9   import gboat2.base.core.annotation.Relation;
10  import gboat2.base.core.annotation.RelationType;
11  import gboat2.base.core.annotation.Relations;
12  
13  
14  
15  /**
16   * 
17   * 与附件类型表关联
18   * @author zhangxj-a
19   * @since jdk1.6
20   * @date 2013-3-25
21   *  
22   */
23  @Relations(base = Attachment.class, value = {
24  	@Relation(refer = AttachConfig.class, referColumn = "configId", baseColumn = "configId", type = RelationType.LEFT)})
25  public class AttachmentVO extends  Attachment{
26  
27      private static final long serialVersionUID = 1L;
28  
29      // 附件类型名称
30  	@Field(clazz = AttachConfig.class, column = "attachType" )
31  	private String configAttachType;
32  	
33  	@Field(clazz = AttachConfig.class )
34  	private float attachOrder;
35  	
36  
37  	public String getConfigAttachType() {
38  		return configAttachType;
39  	}
40  
41  	public void setConfigAttachType(String attachType) {
42  		this.configAttachType = attachType;
43  	}
44  
45  	public float getAttachOrder() {
46  		return attachOrder;
47  	}
48  
49  	public void setAttachOrder(float attachOrder) {
50  		this.attachOrder = attachOrder;
51  	}
52  	
53  	
54  	
55  }