Re: Syncing peers in single thread

2015-09-09 Thread Andrus Adamchik
But why, is there a specific reason? I mean the responses themselves take time to be transferred to the browser, so there's a lag there. So a small lag in syncing on the server side seems acceptable in most scenarios. Or do you have some special enforced ordering of responses? Andrus > On Sep

Re: Syncing peers in single thread

2015-09-09 Thread Lon Varscsak
There are just some times where we currently assume (using EOF) that after commit, that all peer contexts are synced. At a minimum, I would need to know that before I generate a response in a web application, that these contexts are synced. -Lon On Sun, Sep 6, 2015 at 11:15 PM, Andrus Adamchik

Re: onPostAdd and nested object contexts

2015-09-09 Thread Lon Varscsak
This doesn't work, because onPostAdd() is called before the object is initialized with the child's context. So all property/relationships are null. -Lon On Tue, Sep 1, 2015 at 1:16 PM, John Huss wrote: > Check for null for each property you are setting inside of onPostAdd(), > like: > > public

Re: Query at the time of inserting data using Apache Cayenne

2015-09-09 Thread Philip Copeland
Unsubscribe Sent from Outlook On Wed, Sep 9, 2015 at 9:27 AM -0700, "Dipesh Jain" mailto:dip...@ivgroup.in>> wrote: I have written a code in java 8 to insert data in sql server 2012 using apache cayenne 3.1. While executing code I got an exception : **org.apache.cayenne

Re: Query at the time of inserting data using Apache Cayenne

2015-09-09 Thread Aristedes Maniatis
On 10/09/2015 2:11am, Dipesh Jain wrote: > Person person = new Person(); > person.setFirstName("John"); > person.setLastName("Cross"); > ObjectContext context = BaseContext.getThreadObjectContext(); > context.registerNewObject(person); Try this instead DataContext context

Query at the time of inserting data using Apache Cayenne

2015-09-09 Thread Dipesh Jain
I have written a code in java 8 to insert data in sql server 2012 using apache cayenne 3.1. While executing code I got an exception : **org.apache.cayenne.CayenneRuntimeException: [v.3.1 Sep 20 2014 14:24:57] Commit Exception Caused by: java.sql.SQLException: Could not find stored procedure 'auto_p