cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lon Varscsak <lon.varsc...@gmail.com>
Subject Re: Bad DBA, Bad!
Date Wed, 12 Dec 2018 20:36:45 GMT
When the code goes to try to access the Order->OriginCode.getProperty() it
goes to fire the fault and will trigger that exception.

On Tue, Dec 11, 2018 at 5:58 PM Emerson CastaƱeda <emecas@gmail.com> wrote:

> hi Lon
>
> What is the FaultFailureException message you are getting? and when? I
> guess during the insertion by using a not existent FK, right?
>
> if  it is not the case, please provide details in order to understand the
> full context!
>
> Thanks
>
> EmeCas
>
> On Tue, Dec 11, 2018 at 7:51 PM Lon Varscsak <lon.varscsak@gmail.com>
> wrote:
>
> > Okay, so I have a situation where I have a FK to a table where the DBA
> was
> > allowing objects to be deleted.  Think Order to OriginCode (basically a
> way
> > to know which catalog the order came from)...but the OriginCode record
> has
> > been deleted.  I'm going to put a stop to that, but in the meantime I
> need
> > someway to deal with these Orders still.
> >
> > Any thoughts on how I could handle this FaultFailureException and quietly
> > insert a dummy object (maybe onPostLoad in Order)?
> >
> > Thanks,
> >
> > Lon
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message