Strange behaviour of $LOOP$

Hi,

when i use the LOOP macro as in the attached file, i get the following output ...

    {
      int id = object2Save.getId();
    }
    {
      int kopfId = object2Save.getKopfId();
    }
    {
      int refArtikel = object2Save.getRefArtikel();
    }
    {
      int numArtikel = object2Save.getNumArtikel();
    }
    {
      Timestamp belegDatum = new Timestamp(object2Save.getBelegDatum().getMillis());
    }
    {
      Timestamp createdAt = new Timestamp(object2Save.getCreatedAt().getMillis());
    }



How can i get the { } reduced? At another place i also used {} in a $LOOP$ macro, and the braces get removed automatically...

Best,
Dan
2 comments
Comment actions Permalink
Strange ....

same behavior if i just write

$LOOP$ {
          int mything;
       }

then the codegenerator also wraps ever int mything with braces.
0
Comment actions Permalink
You should rather create LOOP macro around LocalVariableDeclarationStatement instead of BlockStatement like this:
$LOOP$[int mything;]
0

Please sign in to leave a comment.