[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-728) Patch for hbm2dao "No signature of method getJavaTypeName matches (java.lang.Object,java.lang.Boolean) "

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri Sep 15 05:37:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-728?page=all ]
     
Max Rydahl Andersen closed HBX-728:
-----------------------------------

    Resolution: Incomplete

> 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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list