Mar 9th, 2011, 09:27 AM
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
and so I have to downgrade the spring version to 3.0.4 or wait until 3.0.6?
Mar 11th, 2011, 07:36 PM
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:
Tags for this Thread