I am getting exception:
[xdoclet] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
[xdoclet] * Generate mapping for 'Address' entity
[xdoclet] * Generate mapping for 'Customer' entity
[xdoclet] * Generate mapping for 'Transaction' entity
[xdoclet] Jan 12, 2006 2:01:52 PM org.apache.commons.jelly.expression.jexl.JexlExpression evaluate
[xdoclet] WARNING: Caught exception evaluating: org.apache.commons.jexl.ExpressionImpl@18d30fb. Reason: java.lang.RuntimeException: more than one top lev
el property deined in class PieceTransaction for property facadeLines
[xdoclet] java.lang.RuntimeException: more than one top level property deined in class PieceTransaction for property facadeLines
Can anyone help?
Hibernate version:
3.0
Mapping documents:
/**
* @hibernate.map
* table="facade_line"
* lazy="false"
* cascade="all,delete-orphan"
* @hibernate.key
* column="id_transaction"
* foreign-key="fk_facade_transaction"
* @hibernate.composite-map-key
* class="com.parvia.account.FacadeKey"
* @hibernate.key-property
* type="string"
* column="edifice_name"
* length="16"
* @hibernate.key-property
* type="string"
* column="facade_name"
* length="16"
* @hibernate.key-property
* type="int"
* column="bag_number"
* @hibernate.element
* column="count"
* type="int"
*/
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
[xdoclet] java.lang.RuntimeException: more than one top level property deined in class PieceTransaction for property facadeLines
[xdoclet] at org.generama.Plugin.assertTrue(Plugin.java:158)
[xdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[xdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[xdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[xdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
[xdoclet] at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:268)
[xdoclet] at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:61)
[xdoclet] at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
[xdoclet] at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
[xdoclet] at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
[xdoclet] at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
[xdoclet] at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:646)
[xdoclet] at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:80)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
[xdoclet] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:108)
[xdoclet] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
[xdoclet] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
[xdoclet] at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
[xdoclet] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
[xdoclet] at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:592)
[xdoclet] at org.generama.JellyTemplateEngine.generate(JellyTemplateEngine.java:51)
[xdoclet] at org.generama.Plugin.start(Plugin.java:186)
[xdoclet] at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:349)
[xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(LifecycleContainerBuilder.java:52)
[xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:45)
[xdoclet] at org.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:95)
[xdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[xdoclet] at org.apache.tools.ant.Task.perform(Task.java:364)
[xdoclet] at org.apache.tools.ant.Target.execute(Target.java:341)
[xdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[xdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[xdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[xdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[xdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[xdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[xdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[xdoclet] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[xdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Name and version of the database you are using:
MySql 4.0.23
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
|