using -entity at add field
hey all,
i am having some problems with adding fields to entities that were created earlier, am trying to use the -entity switch as Ben described it in part2 of his tutorial:
"Another point to note from the above field commands is we didn't specify which entity we wanted to insert the fields into. Roo automatically determines you probably want to add the fields to Rsvp, as that's the last entity you worked with. You could also specify an "-entity ~.SomeEntity" argument if you wish to be explicit or target the fields at another entity (in which case that entity will become the default for subsequent entity-related commands)."
i created an entity called Foo, then another one called Bar and tried to add a set of Bars to Foo:
add field set jpa -element ~.domain.Bar -fieldName bars -entity ~.domain.Foo
result: Bar has a set called bars. (i was dealing with Bar just before)
what am i doing wrong?