Denis Golovin [
https://community.jboss.org/people/dgolovin] created the discussion
"Re: Use Log4j logging instead of apache commons logging"
To view the discussion, visit:
https://community.jboss.org/message/829161#829161
--------------------------------------------------------------
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
[
https://community.jboss.org/message/829161#829161]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]