Why would the DataContext be running out of connections in a web app with only
a small amount of traffic?
(I thought that a group of connections were stored (base on the modeler
specification), and then reused for each transaction.)
Joe
Since you are using 3, you can create a callback in Cayenne Modeler.
When you select the ObjEntity (the Java portion) in CM, there is a
Callbacks tab. Click on it and add a "post-add" callback. You can
call it "initialize" or "initializeProductType" or something similar.
Then in your .java file,
I think callbacks/listeners is the way to go
I'm assuming you're using 3.x
On Apr 14, 2010, at 8:28, Arnaud Garcia wrote:
> Hello,
>
> Is it possible to add default values using the modeler ?
>
> if not, the good way is to overide the setPersistenteState ?
>
> thanks,
>
> arnaud
>
> publ
I use cayenne 3..
Callback ? I need to check the doc, because I don't know how to use it...
thanks for answer !
arnaud
2010/4/14 Michael Gentry
> Are you using Cayenne 2 or 3? What you did is fine for Cayenne 2, but
> in Cayenne 3 you can use a Callback method, too. Also, there is
> currentl
Are you using Cayenne 2 or 3? What you did is fine for Cayenne 2, but
in Cayenne 3 you can use a Callback method, too. Also, there is
currently not a way in the modeler to set those initial values.
mrg
On Wed, Apr 14, 2010 at 8:28 AM, Arnaud Garcia wrote:
> Hello,
>
> Is it possible to add de
Andrus
thanks for the info.
I am trying to get visibility into the effects of my configuration parameters.
So if as you say, getDataRowCache().size() reports the number of "snapshots"
and not the number of objects, the this is essentially reporting the number of
hollow objects fetched. (I ver
Hello,
Is it possible to add default values using the modeler ?
if not, the good way is to overide the setPersistenteState ?
thanks,
arnaud
public class SomeObjEntity extends _SomeObjEntity
{
public void setPersistenceState(int state)
{
super.setPersistenceState(state);
// if the