[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-728?page=co...
]
Max Rydahl Andersen commented on HBX-728:
-----------------------------------------
2 things:
1) There isn't such an if statement in daohome.ftl.
2) if there were, it would simply skip the generation of the finder which is not we
want...
Patch for hbm2dao "No signature of method getJavaTypeName
matches (java.lang.Object,java.lang.Boolean) "
--------------------------------------------------------------------------------------------------------
Key: HBX-728
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-728
Project: Hibernate Tools
Type: Patch
Components: reverse-engineer
Versions: 3.2beta6
Environment: Hibernate tools beta6, Eclipse 3.2, Ant 1.6.5, Windows XP, Hibernate 3.1
Reporter: Jacob Bergoo
This is the fix for this error message:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2dao (Generates a set of DAOs)
[hibernatetool] log4j:WARN No appenders could be found for logger
(org.hibernate.cfg.Environment).
[hibernatetool] log4j:WARN Please initialize the log4j system properly.
[hibernatetool] An exception occurred while running exporter #2:hbm2dao (Generates a set
of DAOs)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing
template daohome.ftl
[hibernatetool] freemarker.template.TemplateModelException: No signature of method
getJavaTypeName matches (java.lang.Object,java.lang.Boolean)
to fix this you need to edit your dao templates you are using to generate the code. For
the method findById() you have a if statement
<#if clazz.identifierProperty>
simply change this one to:
<#if clazz.identifierProperty?has_content>
and it should work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira