FAQ

Search Discussions

13 discussions - 66 posts

  • Hi all. Is it possible for me to obtain the primary key for a Cayenne DataObject before committing changes? I’m writing an audit log and I need the key for the object during PrePersist (where I’m ...
    Hugi ThordarsonHugi Thordarson
    Aug 10, 2015 at 10:31 am
    Aug 27, 2015 at 8:59 am
  • Hey all, I know that Cayenne sync's peer object contexts on a separate thread, but for my case this doesn't work. I need to know that when committing, that the peer synchronization happens ...
    Lon VarscsakLon Varscsak
    Aug 31, 2015 at 9:47 pm
    Sep 10, 2015 at 8:19 pm
  • Hi all. I’m attempting to implement an audit log using Cayenne, automatically storing information on modifications alongside every insert, update and delete. I’m currently doing this by adding a ...
    Hugi ThordarsonHugi Thordarson
    Aug 7, 2015 at 2:18 pm
    Aug 8, 2015 at 8:10 am
  • Hi all. I’m writing a Cayenne-based CRUD framework of sorts, in the form of a jar that plugs into Cayenne applications. Currently, I’m telling the framework about the Cayenne environment at ...
    Hugi ThordarsonHugi Thordarson
    Aug 27, 2015 at 8:38 am
    Aug 28, 2015 at 7:17 am
  • So I am having trouble because when I call commitChangesToParent on one of my nested ECs, I'm getting onPostAdd called. So in my case, I'm using onPostAdd to "setup" my object by creating ...
    Lon VarscsakLon Varscsak
    Aug 31, 2015 at 10:04 pm
    Sep 9, 2015 at 9:01 pm
  • Problem: I am having problems with MySQL connections being disabled improperly on the production server (the development server does not show the same error). This happens only after an idle period ...
    Joe BaldwinJoe Baldwin
    Aug 7, 2015 at 7:41 am
    Aug 24, 2015 at 7:22 am
  • Hi all. I have a utility method that selects a row count given a DataObject class and an Expression, as seen here: https://gist.github.com/hugith/d2cdaf60a6ee12aa0d17 ...
    Hugi ThordarsonHugi Thordarson
    Aug 11, 2015 at 10:09 pm
    Aug 12, 2015 at 10:29 am
  • Hi all. Let’s say an entity has a self referencing relationship, resulting in two modeled relationship definitions in the entity called “parent” and “children” (hopefully pretty self-explanatory) ...
    Hugi ThordarsonHugi Thordarson
    Aug 8, 2015 at 11:16 am
    Aug 9, 2015 at 6:37 am
  • Hi all. I’m starting new project and I’m pondering using the new Java 8 Date/Time API’s in the data model. Is anyone using them already with Cayenne, and if so, any words of warning (or words of ...
    Hugi ThordarsonHugi Thordarson
    Aug 6, 2015 at 8:18 am
    Aug 7, 2015 at 8:24 am
  • Is there a way to get the committed value of a property? There have been a few times with EOF where comparing the current value with the committed snapshot is handy. -Lon
    Lon VarscsakLon Varscsak
    Aug 25, 2015 at 9:07 pm
    Aug 26, 2015 at 7:58 pm
  • Boy… I’m really drowning you folks with mail today. Sorry about that. The gist below shows code where I’m attempting to perform an EJBQL query using a where clause generated from an Expression ...
    Hugi ThordarsonHugi Thordarson
    Aug 27, 2015 at 8:46 pm
    Sep 7, 2015 at 8:20 am
  • Hi all. I find that when I query over relationships I (and my users) almost always want an outer join. For example, if I ask for a list of Employee objects based on the expression ((name=’McDonald’) ...
    Hugi ThordarsonHugi Thordarson
    Aug 27, 2015 at 3:37 pm
    Aug 28, 2015 at 7:16 am
  • Hey all, I have some attributes that are of 'char' type, and at least in Sybase, this returns a string that isn't trimmed...however, all of my code expects these values to be trimmed in the objects ...
    Lon VarscsakLon Varscsak
    Aug 26, 2015 at 8:02 pm
    Aug 26, 2015 at 8:12 pm
Group Navigation
period‹ prev | Aug 2015 | next ›
Group Overview
groupuser @
categoriescayenne
discussions13
posts66
users12
websitecayenne.apache.org
Archives