Which libraries for Java on Github
I see 3 branches of Breeze support Java on github. What is different?
The Json-UriBuilder Branches is look fully. I'm intergrating breezejs with java spring and hibernate to use with AngularJS.
Phuc Tai commented
I have downloaded java northwind example from github (https://github.com/Breeze/breeze.js.samples/tree/master/java/NorthBreeze)
Then i create northwind database and deploy server with Java. The server return data and metadata json look good.
But when i deploy client and call server, i received error:
"Metadata query failed for: http://localhost:8081/NorthBreeze/breeze/northbreeze/Metadata. Unable to either parse or import metadata: Error configuring an instance of 'NavigationProperty'. The 'foreignKeyNamesOnServer' parameter is optional or it must be an array where each element must be a 'string'; [object Object]"
Here is my Medata JSON return, please see this file in URL:
Can anyone help me?
Thanks very much.
Steve Schmitt commented
As you observed, the Json-UriBuilder branch is the most complete and most active right now. That's the one you should be using.
The master and odata4j branches were attempts to support the OData URI format for representing breeze queries. That proved difficult due to the evolving standards, difficult syntax, and lack of a reference implementation. The Json-UriBuilder branch uses JSON for representing the queries, which is simpler and more powerful. Significant refactoring was also performed on the Java code. Eventually this will become the master branch.
Please try it out, and let us know what you think. Post questions to stackoverflow, and bugs to https://github.com/Breeze/breeze.server.java/issues