Re: MariaDB column with auto increment

Markus Reich <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAGscxrzVWCKifOmDH33Qs6=1VtB1YcBsXMBX=sdtT4LmZgPrmw@mail.gmail.com>
ok, thx for the hint, I had to invalidate also object B, then the row got
fetched again :-)

Am Mi., 28. Okt. 2020 um 15:49 Uhr schrieb John Huss <[email protected]>:

> I'd turn on SQL logging and check that it is refetching the row via SQL.
> Also query the DB to verify the value is set there.
>
> log4j.logger.org.apache.cayenne.log.JdbcEventLogger = INFO
>
> On Wed, Oct 28, 2020 at 2:35 AM Markus Reich <[email protected]>
> wrote:
>
> > Hi,
> >
> > I'm using Cayenne 4.1.
> > I have an an object A with an one to one relation to another object B,
> > in object B I got an column with an autoincrement field (no PK).
> > Now when I create an new object A / B the value of the column stays at 0.
> > I tried to refresh with object contexts invalidateObjects method and
> with a
> > RefreshQuery but it stays 0?
> >
> > regards
> >
> > --
> > *Markus Reich*
> > Waldweg 62
> > 6393 St. Ulrich am Pillersee
> > www.markusreich.at / www.meeximum.at
> > [email protected]
> >
>


-- 
*Markus Reich*
Waldweg 62
6393 St. Ulrich am Pillersee
www.markusreich.at / www.meeximum.at
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.