cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: cgen bug - unexpanded template variables
Date Wed, 24 Aug 2011 14:22:07 GMT
I am sure I've seen it before. IIRC certain errors in the DataMap caused similar behavior for
me. So which version of Cayenne is this and also are there any warnings when you save your
project in the Modeler?

(If we can't come with an answer based on this info, I guess you may open a Jira and attach
the problematic DataMap to it so that somebody could debug it, and at least improve the Modeler
validation - ). 


On Aug 24, 2011, at 5:11 PM, Becker, Joel wrote:

> Hello everyone. I reverse-engineered an existing database in Cayenne
> modeler -worked very smoothly-then I created a maven project and ran the
> cgen plugin on the resulting mapping files (there are 2, one for each of
> 2 data nodes / schemas). The first worked fine. For the second, in the
> generated java POJOs, about half or more of the addTo*Array() and
> removeFrom*Array() methods have for a parameter
> "$importUtils.formatJavaType(${rel.TargetEntity.ClassName}) obj", which
> obviously results in compiler errors. This looks like an unexpanded
> variable from the code templates, like maybe it's not being set? Is this
> a known bug? Is there a work-around?
> Thanks!
> Joel

View raw message