[jboss-user] [JBoss Tools] - Re: Use Log4j logging instead of apache commons logging

Denis Golovin do-not-reply at jboss.com
Mon Jul 22 14:28:25 EDT 2013


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&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130722/a2efa0f1/attachment.html 


More information about the jboss-user mailing list