Announcement Announcement Module
Collapse
No announcement yet.
Dynamic finders - Objects as request parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamic finders - Objects as request parameter

    Hello, I'm using Roo 1.1.1.RELEASE and spring 3.0.5 and I have a doubt with the dynamic finders.

    I want to 'findAbyB', having two entities 'A' and 'B' with a Many To One relationship from A to B, receiving a JSON response. Everything is generated as expected, but the problem comes when I'm making the request. How must I send the object 'B' parameter in the URL? If I try any type but numeric it tells it needs a Long. I guessed it requests the id, but if I do so it returns an 'Internal Server Error'.

    Does this have anything to do with this issue
    https://jira.springsource.org/browse/ROO-1780
    and so I have to downgrade the spring version to 3.0.4 or wait until 3.0.6?

    Thanks.
    Roberto.

  • #2
    I don't know enough to give you many details or be of much help, but I might be able to point you in the right direction.

    I believe that sending an object in a post request will require JSON or SOAP encoding, otherwise you are limited to string data in posts.

    For more info:
    http://static.springsource.org/sprin...html#base-json

    http://forum.springsource.org/showthread.php?t=103028

    Comment

    Working...
    X