package com.asksunny.schema;

import java.util.List;

public class Field {

	Entity container;

	int jdbcType;
	int scale;
	int precision;
	int displaySize;
	boolean nullable;
	String name;

	DataGenType dataType;
	String format;
	String maxValue;
	String minValue;
	String step;
	boolean random;

	List<Field> referencedBy;
	Field reference;

	public List<Field> getReferencedBy() {
		return referencedBy;
	}

	public void setReferencedBy(List<Field> referencedBy) {
		this.referencedBy = referencedBy;
	}

	public Field getReference() {
		return reference;
	}

	public void setReference(Field reference) {
		this.reference = reference;
	}

	public int getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(int jdbcType) {
		this.jdbcType = jdbcType;
	}

	public int getScale() {
		return scale;
	}

	public void setScale(int scale) {
		this.scale = scale;
	}

	public int getPrecision() {
		return precision;
	}

	public void setPrecision(int precision) {
		this.precision = precision;
	}

	public int getDisplaySize() {
		return displaySize;
	}

	public void setDisplaySize(int displaySize) {
		this.displaySize = displaySize;
	}

	public boolean isNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DataGenType getDataType() {
		return dataType;
	}

	public void setDataType(DataGenType dataType) {
		this.dataType = dataType;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(String maxValue) {
		this.maxValue = maxValue;
	}

	public String getMinValue() {
		return minValue;
	}

	public void setMinValue(String minValue) {
		this.minValue = minValue;
	}

	public String getStep() {
		return step;
	}

	public void setStep(String step) {
		this.step = step;
	}

	public boolean isRandom() {
		return random;
	}

	public void setRandom(boolean random) {
		this.random = random;
	}

	public Entity getContainer() {
		return container;
	}

	public void setContainer(Entity container) {
		this.container = container;
	}

}

@@ -25,16 +25,45 @@
 ema;%0D%0A%0D%0A
+import java.util.ArrayList;%0D%0A
 import j
@@ -78,16 +78,16 @@
 .List;%0D%0A
-
 %0D%0Apublic
@@ -363,24 +363,49 @@
 referencedBy
+ = new ArrayList%3CField%3E()
 ;%0D%0A%09Field re
@@ -492,35 +492,35 @@
 %0A%0D%0A%09public void 
-set
+add
 ReferencedBy(Lis
@@ -568,23 +568,127 @@
 edBy
- = referencedBy
+.addAll(referencedBy);%0D%0A%09%7D%0D%0A%0D%0A%09public void addReferencedBy(Field referencedBy) %7B%0D%0A%09%09this.referencedBy.add(referencedBy)
 ;%0D%0A%09

Change set to add