Browse Source

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@690 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d

administrator 11 years ago
parent
commit
be264b3759
1 changed files with 36 additions and 1 deletions
  1. 36 1
      src/main/java/com/uas/platform/b2b/model/Attach.java

+ 36 - 1
src/main/java/com/uas/platform/b2b/model/Attach.java

@@ -9,6 +9,8 @@ import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.persistence.Transient;
 
+import org.codehaus.jackson.annotate.JsonIgnore;
+
 @Entity
 @Table(name = "attachs")
 public class Attach {
@@ -39,7 +41,19 @@ public class Attach {
 	 */
 	@Column(name = "at_size")
 	private Long size;
-	
+
+	/**
+	 * 关联的表
+	 */
+	@Column(name = "rel_table")
+	private String relativeTable;
+
+	/**
+	 * 关联的数据主键值
+	 */
+	@Column(name = "rel_key")
+	private Long relativeKey;
+
 	@Transient
 	private String sourceId;
 
@@ -51,6 +65,7 @@ public class Attach {
 		this.id = id;
 	}
 
+	@JsonIgnore
 	public String getPath() {
 		return path;
 	}
@@ -59,6 +74,7 @@ public class Attach {
 		this.path = path;
 	}
 
+	@JsonIgnore
 	public String getDescription() {
 		return description;
 	}
@@ -83,6 +99,7 @@ public class Attach {
 		this.size = size;
 	}
 
+	@JsonIgnore
 	public String getSourceId() {
 		return sourceId;
 	}
@@ -91,6 +108,24 @@ public class Attach {
 		this.sourceId = sourceId;
 	}
 
+	@JsonIgnore
+	public String getRelativeTable() {
+		return relativeTable;
+	}
+
+	public void setRelativeTable(String relativeTable) {
+		this.relativeTable = relativeTable;
+	}
+
+	@JsonIgnore
+	public Long getRelativeKey() {
+		return relativeKey;
+	}
+
+	public void setRelativeKey(Long relativeKey) {
+		this.relativeKey = relativeKey;
+	}
+
 	public Attach() {
 	}