Yeah. Looks kinda stupid. There’s an asymmetry between EntityArtifact, that exports ObjEntity as “object” into Velocity context) and DataMapArtifact that exports self as “object”.
I am +1 to clean it up. Perhaps as a stopgap for 3.1, we simply add “getDataMap()” method to DataMapArtifact? Andrus On Jan 7, 2014, at 4:28 PM, Mike Kienenberger <mkien...@gmail.com> wrote: > Is it just me, or has the cgen templating been rewritten so that in > datamap mode, you can't actually access the datamap? Instead, you can > only access some datamap query information. > > That defeats the entire point of that mode. I called it "datamap" > mode for a reason, not "datamap-queries" :-) > > I was using this mode to generate DAO pattern objects, which requires > being able to iterate over all of the entities in a datamap. >