That doesn't sound like the right behavior.  Can you create small example
that reproduces the problem?

On Wednesday, September 19, 2012, wrote:

> Is this a bug or am I doing something wrong ?
>
> I'm using 3.1B1 and getting a validation exception BEFORE my onPrePersist
> lifecycle method is called ?
>
> Caused by: org.apache.cayenne.validation.ValidationException: [v.3.1B1 May
> 28 2012
>
> 20:59:56]org.apache.cayenne.access.ObjectStoreGraphDiff.validateAndCheckNoop(ObjectStoreGraphDiff.java:111)
>         at
> org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:806)
>         at
> org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:756)
>
>
> The Cayenne Guide\Lifecycle Callbacks documentation indicates that
> PrePersist is called "Prior to commit (and prior to "validateFor*") within
> ObjectContext.commitChanges()"
>
> However from the above this doesn't seem to be the case ?
>
> So is this a bug or am I missing something ?
>
>
>

Reply via email to