hello,
I have a system with Hibernate 4.1.7 and Spring 1.3.4 jpa. When I run myEntity.findOne(id), the hibernate WARN logging in console:
Code:
[main]; WARN; org.hibernate.dialect.function.TemplateRenderer; - HHH000174: Function template anticipated four arguments, but arguments first encountered.
Find out about some possible solutions in but could not solve my problem in
http://jira.xwiki.org/browse/XWIKI-9215,
https://hibernate.atlassian.net/browse/HHH-6280.
I am checking the code logging...
Code:
@SuppressWarnings({ "UnusedDeclaration" })
public String render(List args, SessionFactoryImplementor factory) {
int numberOfArguments = args.size();
if ( getAnticipatedNumberOfArguments() > 0 && numberOfArguments != getAnticipatedNumberOfArguments() ) {
LOG.missingArguments( getAnticipatedNumberOfArguments(), numberOfArguments );
}
StringBuilder buf = new StringBuilder();
for ( int i = 0; i < chunks.length; ++i ) {
if ( i < paramIndexes.length ) {
final int index = paramIndexes[i] - 1;
final Object arg = index < numberOfArguments ? args.get( index ) : null;
if ( arg != null ) {
buf.append( chunks[i] ).append( arg );
}
}
else {
buf.append( chunks[i] );
}
}
return buf.toString();
}