I'd like to second this suggestion. There have been several instances that I've
made required fields nullable solely because validation occurs prior to the
@PrePersist lifecycle callback.
From: Hugi Thordarson
Sent: Wednesday, March 1, 2017 8:51:48 AM
To: user@c
I'm looking for some ROP expertise here... can someone provide a simple example
of how to run an ROP server instance outside of running the Cayenne Maven task
that does the same? Any help is much appreciated.
-Adam
The way I have it working is by using a custom sequence for PK generation. In
the dialog to set it up you can choose the "cached PK size" which determines
how many PKs cayenne will grab at a time for a given transaction. If you set it
to 1 it will only grab one at a time, but keep in mind that t
I can't speak to what Cayenne is able to do solely when using an ObjectQuery,
but from a database perspective it sounds like you want to be using a view that
provides the date-only version of your datetime column. Then you could query it
just like a table and do your sort on the date-only column
client, or the server as well?
Andrus
> On Jun 3, 2016, at 9:15 PM, Adam Boyle wrote:
>
> Have any of you ever had to tackle the problem of obfuscating a project that
> uses Cayenne? I'm looking to find a way to be able to obfuscate a Cayenne ROP
> project and I'm ho
Have any of you ever had to tackle the problem of obfuscating a project that
uses Cayenne? I'm looking to find a way to be able to obfuscate a Cayenne ROP
project and I'm hoping that we're not the first to attempt this.
Our thinking is that we would write a utility/maven plugin to obfuscate the
Maniatis wrote:
> On 10/04/2016 2:56pm, Adam Boyle wrote:
>> Ah, I forgot you are using the latest and greatest and not Hessian. Looks
>> like I will have to figure this one out on my own for now, or else do a
>> build off of master and implement something similar to what yo
re
it out :)
____
From: Adam Boyle
Sent: Tuesday, April 19, 2016 12:56 PM
To: Cayenne Users
Subject: Re: ROP - Define order of inserts on large commit to multiple tables
with relationships?
Hi Michael,
Although my setup is not exactly the same, there are definite similarities,
namely in the method
I can confirm... prefetching is the way to go.
https://cayenne.apache.org/docs/4.0/cayenne-guide/performance-tuning.html#prefetching
I was having a similar issue where my most recently committed records were not
showing up in subsequent queries. Prefetching is what fixed it for me. You can
appl
ch
the one that doesn't have a parent relationship.
mrg
On Mon, Apr 18, 2016 at 10:50 PM, Adam Boyle wrote:
> I have sets of tables that contain versioned data; one table acts as the
> parent and the other contains the revisions of the parent. The parent
> record stores a long PK a
dule myModule = (binder) ->
binder.bind(EntitySorter.class).to(WeightedAshwoodEntitySorter.class);
ServerRuntime runtime = ServerRuntimeBuilder.builder().addModule(myModule)
Andrus
> On Apr 19, 2016, at 5:50 AM, Adam Boyle wrote:
>
> I have sets of tables that contain versioned data; one ta
I have sets of tables that contain versioned data; one table acts as the parent
and the other contains the revisions of the parent. The parent record stores a
long PK and a string ID. The revisions table stores a long PK, the long PK of
the parent (with FK relationship), a replacement date (if n
Is it as simple as setting a pre-persist and post-load hook and only
implementing them on the server?
From: Adam Boyle
Sent: Saturday, April 16, 2016 10:48 AM
To: user@cayenne.apache.org
Subject: ROP: perform action server-side before commit/fetch
Is
Is there a way to add a server-side hook in an ROP setup that allows you to
perform an action before a record is committed or before it is fetched to alter
a flag on the record before it is sent to the client?
Here is my use-case: I have records that need to be electronically signed. My
implem
amped with
trying to make this application demoable by Tuesday ;)
-Adam
From: Aristedes Maniatis
Sent: Sunday, April 10, 2016 12:24 AM
To: user@cayenne.apache.org
Subject: Re: NPE on ROP connect after upgrading from 4.0.M2 to 4.0.M3
On 10/04/2016 2:39am,
't accepting
patches. In the meantime, if you hit the BigDecimal bug, it isn't hard to work
around.
Ari
On 9/04/2016 11:47am, Adam Boyle wrote:
> I'm running both client and server from an eclipse project locally with
> maven, but I'll make sure that the hessian de
d to the server end? I'm not sure of the compatibility between
the two.
Ari
On 9/04/2016 3:28am, Adam Boyle wrote:
> I'm seeing the following NPE on the client when connecting my ROP client
> after upgrading from 4.0.M2 to M3:
>
>
> Apr 08, 2016 1:11:38 PM org.apache.
I'm seeing the following NPE on the client when connecting my ROP client after
upgrading from 4.0.M2 to M3:
Apr 08, 2016 1:11:38 PM org.apache.cayenne.remote.hessian.HessianConnection
connect
INFO: Connecting to [system:***@http://localhost:8080/vidval/cws] -
dedicated session.
Apr 08, 201
:)
-Adam
From: Aristedes Maniatis
Sent: Friday, April 8, 2016 2:45 AM
To: user@cayenne.apache.org
Subject: Re: ROP: detecting that my client connection has timed out
On 8/04/2016 3:06pm, Adam Boyle wrote:
> Does anyone know of a better way? Perhaps some ad
ponse.sendError(HttpServletResponse.SC_UNAUTHORIZED);
}
You should be able to catch the 401 error on the client end and do something
useful with it.
Does that help?
Ari
On 8/04/2016 3:06pm, Adam Boyle wrote:
> Thanks for the response. I could be overlooking it, but I don't see an answer
&
lient connection has timed out
On 8/04/2016 1:28pm, Adam Boyle wrote:
> Is there a simple way of detecting that the connection is dead so that I can
> prompt the user to reconnect?
I don't think you need to prompt the user if you keep the user's authentication
details in memory.
I have a rich client application that uses the Apache Cayenne Remote Object
Persistence framework to access and store data. Thus far I have been unable to
find a graceful way of detecting and handling a client connection timeout. A
MissingSessionException is thrown on both the client and server
22 matches
Mail list logo