So I understand that for entities that have composite keys, Roo creates an application conversion service for encoding/decoding a JSON string that represents the composite key using Base64 encoding. If I'm going to post an entity via an AJAX call, then I'll need to first get the encoded JSON string to submit that as the id field. So I'm wondering what the best practice might be. I'm thinking I can make one AJAX call, submitting the composite key fields as JSON and returning the encoded string. After that I can post the actual entity via a second AJAX call and use the encoded string as the id. I'm just wondering if there's a better way. Not sure if Dojo or some other JS library has a method for converting JSON to Base64 encoded strings so that it could be done in the browser and save a server request.
Best practice for posting entites via AJAX that have composite keys Page Title Module
Move Remove Collapse