To edit or add content to this Wiki, you can simply create a new account at

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

#if ($entity.packageName)
package $entity.packageName;

import org.apache.log4j.Logger;

import com.webobjects.eocontrol.EOEditingContext;

public class ${entity.classNameWithoutPackage} extends ${entity.prefixClassNameWithOptionalPackage} {

	private static Logger log = Logger.getLogger(${entity.classNameWithoutPackage}.class);

	public ${entity.classNameWithoutPackage}() {
		// Don't do anything here! All initial object setup must 
		// be done in the awakeFromInsertion(EOEditingContext) method.

	public void awakeFromInsertion(EOEditingContext ec) {
		* All attributes you set here should be wrapped in a if(attribute == null) conditional, otherwise
		* many bad things can happen as new instances are copied back from the java client and inserted into
		* the server-side editing context! 
  • No labels