-
Jun 23rd, 2009, 08:32 AM
#1
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?
-
Jun 23rd, 2009, 10:16 AM
#2
replying myself
consulted clinic.roo, should've used -class, it works.
-
Jun 23rd, 2009, 05:53 PM
#3
Indeed our scripts (clinic.roo, wedding.roo and vote.roo) are a good way to start learning about roo commands.
But this should not happen if you rely more on tab completion. So instead of typing '-entity' you just type '-' followed by tab.
-Stefan
-
Jun 23rd, 2009, 05:58 PM
#4
Stefan,
nice tip, thanks a lot.
Attila
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules