Querying services from JAVA

25 views
Skip to first unread message

JF James

unread,
Nov 17, 2014, 12:43:11 PM11/17/14
to barat...@googlegroups.com
Hi,

First off, I want to congratulate you for your initiative. Baratine seems to be a very promising project! I'm really looking forward for next releases!

I've played around a little with release 0.8.5  it and I appreciate the concept, the design and the simplicity of the programming model.

I've tried to make an example by myself using the Query Service and I cannot make the wildcard "?" work.

With my test : ServiceRef ref = manager.findOne("count > 10"); does work

while ServiceRef ref = manager.findOne("count > ?", 10); doesn't and leads to an exception:  ServiceExceptionExecution: java.lang.UnsupportedOperationException: ParamExpr

Do I miss something or does it mean that querying is not implemented on baratine 0.8.5?

Thanks for your help.

Scott Ferguson

unread,
Nov 17, 2014, 8:48:46 PM11/17/14
to barat...@googlegroups.com
On 11/17/14, 9:43 AM, JF James wrote:
Hi,

First off, I want to congratulate you for your initiative. Baratine seems to be a very promising project! I'm really looking forward for next releases!

Thanks!

For the 0.8.6 release, we probably added more stuff than we should have, so it'll still be a bit longer. (moving to JDK8, updating the deployment, stress testing the database.)



I've played around a little with release 0.8.5  it and I appreciate the concept, the design and the simplicity of the programming model.

I've tried to make an example by myself using the Query Service and I cannot make the wildcard "?" work.

With my test : ServiceRef ref = manager.findOne("count > 10"); does work

while ServiceRef ref = manager.findOne("count > ?", 10); doesn't and leads to an exception:  ServiceExceptionExecution: java.lang.UnsupportedOperationException: ParamExpr

Do I miss something or does it mean that querying is not implemented on baratine 0.8.5?

Many of the expressions were stubbed out. Enough to test that expressions work properly, but not all expressions added. I'm pretty sure 0.8.6 adds most of the expected expressions, but I'll check.

-- Scott

Thanks for your help.
--
You received this message because you are subscribed to the Google Groups "Baratine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to baratine-io...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages