Hi,
I am newbie in Spring Roo, so I have problems
I have 3 domain classes
Code:entity --class ~.domain.Lang --testAutomatically field string --fieldName name --sizeMin 2 --sizeMax 20 --notNull entity --class ~.domain.Category --testAutomatically field string --fieldName name --sizeMin 2 --sizeMax 30 --notNull entity --class ~.domain.Text --testAutomatically field reference --fieldName lang --type ~.domain.Lang --notNull field reference --fieldName category --type ~.domain.Category --notNull field string --fieldName title --notNull --sizeMax 100 field string --fieldName author --sizeMax 100 field string --fieldName text --notNull --sizeMax 200000 --sizeMin 1000
I send by POST to
http://localhost:8080/TextCuter/lang/jsonArray [{"name" : "en"}]
and to
http://localhost:8080/TextCuter/category/jsonArray [{"name" : "it"}]
That works fine (and now I have category and language, both with id == 1)
Then I want to create some Text
I send to http://localhost:8080/text/lang/jsonArray [{"category" : 1, "lang" : 1, ...}]
and it doesn't work... (validation failed)
When I try to add this Text using browser and auto generated form it works well.
What do I wrong?



Reply With Quote
