JBoss Community

Re: Use Log4j logging instead of apache commons logging

created by Denis Golovin in JBoss Tools - View the full discussion

It seems there is no easy way, because it is hardcoded in daohome.ftl template inside hibernate-tools-4.0.0.jar as

 

{code}

${pojo.getPackageDeclaration()}

// Generated ${date} by Hibernate Tools ${version}

 

 

<#assign classbody>

<#assign declarationName = pojo.importType(pojo.getDeclarationName())>/**

* Home object for domain model class ${declarationName}.

* @see ${pojo.getQualifiedDeclarationName()}

* @author Hibernate Tools

*/

<#if ejb3>

@${pojo.importType("javax.ejb.Stateless")}

</#if>

public class ${declarationName}Home {

 

 

    private static final ${pojo.importType("org.apache.commons.logging.Log")} log = ${pojo.importType("org.apache.commons.logging.LogFactory")}.getLog(${pojo.getDeclarationName()}Home.class);

....

{code}

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community