thank you for your answer. i tried to add a --field reference both ways, following my example above. please correct me if i'm wrong:
unfortunately while executing my script, i get the following exception when reaching the second field reference:
entity --class ~.domain.Order --testAutomatically
field reference --fieldName invoice --type ~.domain.Invoice --cardinality ONE_TO_ONE
entity --class ~.domain.Invoice --testAutomatically
field reference --fieldName order --type ~.domain.Order --cardinality ONE_TO_ONE
java.lang.IllegalArgumentException: Invalid dependency between upstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?[...].domain.OrderDataOnDemand' and downstream 'MID:org.springframework.roo.addon.dod.DataOnDeman dMetadata#SRC_TEST_JAVA?[...].domain.InvoiceDataOnDemand'
as you can see, i do not have the chance to try to add --mappedBy to my 1:1 JPA manually, because execution of the script stops here...
if i got that right, following ROO-2322, this should be fixed in 1.2.0 RC1? currently i'm using 1.2.0.BUILD-SNAPSHOT [rev b00913d] on win7.
i will add the 1:1 mappedBy issue to jira, but would love to get a solution for this exception first... thx a lot again!
created ROO-2725 for both issues... sorry for bad formatting