Merge branch 'feature/meta-rest-and-db' into 'master'
Feature/meta rest and db
The META REST API:
Setting:
curl -XPOST -H 'Content-Type: application/json' --data-ascii '{"setting-a":1}' http://localhost:8080/MoyaWeb/rest/meta/printedcard/2247/module1-settings
curl -XPOST -H 'Content-Type: application/json' --data-ascii '{"type":"ladyfit", "size":"S"}' http://localhost:8080/MoyaWeb/rest/meta/printedcard/2247/shirt-preference
Getting:
curl http://localhost:8080/MoyaWeb/rest/meta/printedcard/2247/ => {"shirt-preference":{"type":...,"size":...}}
curl http://localhost:8080/MoyaWeb/rest/meta/printedcard/2247/shirt-preference => {"type":...,"size":...}
curl http://localhost:8080/MoyaWeb/rest/meta/printedcard/2247/foo/bar
ALSO:
- Fixed Changed Fields Optimistic Locking policy to NOT to try compare JSON fields on UPDATE (cannot compare json objects in PostgreSQL, tries to do UPDATE table SET meta='{"foo":1}' WHERE id = 23 AND meta = '{"foo":2}'; or so and explodes)
- Fixed Returning Policy to do INSERT ... RETURNING id;
- BROKER DDL GENERATION: does not currently do "id SERIAL" but "id INTEGER" because eclipselink assumes too much.
Showing
with
574 additions
and
277 deletions
code/MoyaUtilsTest/.classpath
0 → 100644
code/MoyaUtilsTest/.project
0 → 100644
code/MoyaUtilsTest/pom.xml
0 → 100644
code/MoyaUtilsTest/src/META-INF/MANIFEST.MF
0 → 100644
-
Please register or sign in to post a comment