The CVS version (just checked out) seems to have problems. Here is the log when I try the samples.
===============================================
Buildfile: build.xml
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[middlegen] Database URL:jdbc:hsqldb:C:\tools\middlegen\samples/build/hsqldb/air
line
[middlegen] No <table> elements specified. Reading all tables. This might take a
while...
[middlegen] 2006-05-18 23:56:29,843 WARN [middlegen.plugins.entitybean.JBoss] W
ARNING (cmp20): JBoss 3.0 doesn't support fields that are part of CMR to be CMP
at the same time. You might want to set fkcmp="false" in the cmp20 plugin.
[middlegen] -- reservations-has-flights
[middlegen] -- reservations-has-persons
[middlegen] 2006-05-18 23:56:31,765 ERROR [middlegen.FileProducer] Invocation of
method 'getGetterName' in class middlegen.plugins.entitybean.Entity20Table thr
ew exception class java.lang.IllegalArgumentException : The relationshipRole's o
rigin must be reservations , but was reservations
[middlegen] org.apache.velocity.exception.MethodInvocationException: Invocation
of method 'getGetterName' in class middlegen.plugins.entitybean.Entity20Table t
hrew exception class java.lang.IllegalArgumentException : The relationshipRole's
origin must be reservations , but was reservations
[middlegen] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(AST
Method.java:246)
[middlegen] at org.apache.velocity.runtime.parser.node.ASTReference.execute(
ASTReference.java:175)
[middlegen] at org.apache.velocity.runtime.parser.node.ASTReference.render(A
STReference.java:220)
[middlegen] at org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:230)
[middlegen] at org.apache.velocity.runtime.directive.Parse.render(Parse.java
:181)
[middlegen] at org.apache.velocity.runtime.parser.node.ASTDirective.render(A
STDirective.java:114)
[middlegen] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBl
ock.java:55)
[middlegen] at org.apache.velocity.runtime.directive.Foreach.render(Foreach.
java:166)
[middlegen] at org.apache.velocity.runtime.parser.node.ASTDirective.render(A
STDirective.java:114)
[middlegen] at org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:230)
[middlegen] at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngin
e.java:316)
[middlegen] at middlegen.FileProducer.generate(FileProducer.java:328)
[middlegen] at middlegen.FileProducer.generateForTable(FileProducer.java:246
)
[middlegen] at middlegen.Plugin.doIt(Plugin.java:587)
[middlegen] at middlegen.Plugin.generate(Plugin.java:445)
[middlegen] at middlegen.Middlegen.writeSource(Middlegen.java:355)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:446)
[middlegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[middlegen] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[middlegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[middlegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD FAILED
C:\tools\middlegen\samples\build.xml:228: middlegen.MiddlegenException: Invocati
on of method 'getGetterName' in class middlegen.plugins.entitybean.Entity20Tabl
e threw exception class java.lang.IllegalArgumentException : The relationshipRol
e's origin must be reservations , but was reservations
Total time: 7 seconds
|