I decided to try out the new 3.2.0beta9a version of Hibernate Tools and to try out the hbm2doc with the GraphViz dependency. I am using ANT to execute the tool. When I try to generate the documentation with dot.executable defined to activate the GraphViz diagrams, I get the following error:
Code:
[hibernatetool] Jun 19, 2007 12:00:45 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error
[hibernatetool] SEVERE:
[hibernatetool]
[hibernatetool] Method public java.lang.String org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property)
threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@1abcc03
[hibernatetool] The problematic instruction:
[hibernatetool] ----------
[hibernatetool] ==> if c2h.getHibernateTypeName(property)?exists [on line 62, column 6 in dot/entitygraph.dot.ftl]
[hibernatetool] in user-directive propertyEdges [on line 32, column 3 in dot/entitygraph.dot.ftl]
[hibernatetool] ----------
[hibernatetool]
[hibernatetool] Java backtrace for programmers:
[hibernatetool] ----------
[hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String
org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property)
threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@1abcc03
[hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:136)
[hibernatetool] at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
[hibernatetool] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
(stack trace trimmed)
[hibernatetool] Caused by: java.lang.UnsupportedOperationException: accept on
org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve_id)])
[hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.handle(DefaultValueVisitor.java:40)
[hibernatetool] at org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor.accept(DefaultValueVisitor.java:97)
[hibernatetool] at org.hibernate.mapping.DependantValue.accept(DependantValue.java:31)
[hibernatetool] at org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(Cfg2HbmTool.java:380)
[hibernatetool] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
[hibernatetool] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[hibernatetool] at java.lang.reflect.Method.invoke(Method.java:597)
[hibernatetool] at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583)
[hibernatetool] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:113)
[hibernatetool] ... 56 more
[hibernatetool] An exception occurred while running exporter #2:hbm2doc (Generates html schema documentation)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl
[hibernatetool] freemarker.template.TemplateModelException: Method public java.lang.String
org.hibernate.tool.hbm2x.Cfg2HbmTool.getHibernateTypeName(org.hibernate.mapping.Property)
threw an exception when invoked on org.hibernate.tool.hbm2x.Cfg2HbmTool@1abcc03
[hibernatetool] java.lang.UnsupportedOperationException: accept on
org.hibernate.mapping.DependantValue([org.hibernate.mapping.Column(serve_id)])
BUILD FAILED
C:\eng\projects\ServeCentral\build.xml:79: org.hibernate.tool.hbm2x.ExporterException: Error while processing template dot/entitygraph.dot.ftl
Anybody have any ideas on how to proceed?