package org.sculptor.generator.util;

public abstract class ChainLink<T extends ChainLink<?>> {
	private T nextLink;

	public ChainLink(T next) {
		// TODO check for NULL
		// can be null only when created from templates and extension in generator-core
		nextLink = next;
	}

	public T getNext() {
		return nextLink;
	}
}

@@ -267,16 +267,116 @@
 next;%0A%09%7D
+%0A%09%0A%09public ChainLink() %7B%0A%09%09%0A%09%7D%0A%09%0A%09public void setNext(ChainLink%3C?%3E next) %7B%0A%09%09nextLink = (T) next;%0A%09%7D
 %0A%0A%09publi

Add default constructor to generated class