mplates.1.2.source-code.Pojo.ftl Maven / Gradle / Ivy
<#assign object = doc.object>
package ${object.@package}.model;
import ${object.@package}.model.base.${object.@name}Base;
import java.sql.ResultSet;
import redora.exceptions.CopyException;
/**
* {@inheritDoc}
* @author Redora (www.redora.net)
* @see ${object.@name}Base
*/
public class ${object.@name} extends ${object.@name}Base {
public ${object.@name}() {
//Initializes default values (if any).
super();
}
/**
* Initializes ${object.@name} using a record in a ResultSet. The ${object.@name}Util class
* normally uses this.
* @param rs (Mandatory) ResultSet object using the field set defined in ${object.@name}SQLBase pointing to the record you want to serialize.
* @param offset (Mandatory) Usually 0, but if the field set is more then this object's field set you must set the offset.
* @param scope (Mandatory) The scope of the executed query, like Scope.Table of Scope.Form.
* @throws CopyException Wrapper for SQLException from accessing the ResultSet
*/
public ${object.@name}(@org.jetbrains.annotations.NotNull ResultSet rs, int offset
, @org.jetbrains.annotations.NotNull redora.api.fetch.Scope scope)
throws CopyException {
super(rs, offset, scope);
}
//You can override and add methods here, this class is only generated once and will not be overwritten
//If you override getters, the result of the custom getter is not persisted.
}