#set ($db = $table.Database) #if ($db.Package) #set ($package = $db.Package) #else #set ($package = $targetPackage) #end package $package; import java.util.*; import org.apache.torque.om.BaseObject; import org.apache.torque.util.BasePeer; import org.apache.torque.util.Criteria; import org.apache.torque.pool.DBConnection; #if ($child.Ancestor) #set ($parent = $child.Ancestor) #else #set ($parent = $table.JavaName) #end /** #if ($addTimeStamp) * The skeleton for this class was autogenerated by Torque on: * * [$now] * #end * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. */ public class $child.ClassName extends $parent { public ${child.ClassName}() { #set ($col = $child.Column) #set ( $cfc=$col.JavaName ) #set ($table = $col.Table) set${cfc}(${table.JavaName}Peer.CLASSKEY_$child.Key.toUpperCase()); } }