Re: MariaDB column with auto increment

John Huss <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAOUwSGvOQ5wgaGDswoybvR3yMt+BXME8pGoSP_Aafg-T_Xo=jg@mail.gmail.com>
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]
>
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.