Save me. Where does JBossTools get the org.jboss.seam.tool.Util
class
from? I added a method to it named isToOne() but FreeMarker doesn't
seem to want to find this method when running generate-entities
through JBossTools. My guess is that there is some other JAR somewhere
that is being used rather than lib/gen/jboss-seam-gen.jar in the Seam
distribution, but I could be wrong.
You are correct - we had to "hack" our seam generation in jboss tools
to use its own version of the seam-gen util.jar (why ? I can't really
remember now, but it was the only way to move forward back then)
We should get it fixed so we will actually pick up the right jar.
On another note, we should move this isToOne() method into Hibernate
Tools anyway. If you take a look at it (src/gen), I needed to create
it because currently this information is not exposed as a built-in
function call. A one-to-one and a many-to-one mapping are represented
exactly the same in the UI, so I was able to offer an extra feature
for those wanting to see one-to-one relationships in the UI out of the
reverse engineering process. Only, it is causing JBossTools to bomb at
the moment.
AFAIK, we already got this in recent hibernate tools - we just need to get
it into a release.
See Anthony's comment on
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1090
/max