2018-05-03 10:48 GMT+02:00 xragons <[email protected]>:

> Awesome. Not sure if I should make a different post since it's kinda a
> different issue. But i'll post it here for now.
>

If in doubt, create a new discussion. We won't run out of discussion IDs
anytime soon :)
(it'll be easier for future visitors to track down what has really been
discussed)


> But, when I try to save/update It's not performing any queries. here is
> the method:
>
>
>  public void save() {
>     // init connection and DSL context
>     DataSource dataSource = connection();
>     DSLContext create = DSL.using(dataSource, SQLDialect.MYSQL_8_0);
>
>     // create a new POJO instance
>     MyBook myBook = new BookClass();
>
>     myBook.id = 1;
>     myBook.name = "Tom";
>
>     // Loading a JOOQ-generated BookRecord from POJO
>     BooksRecord book = create.newRecord(BOOKS, myBook);
>
>     // we just want to update the already existing name
>     create.executeUpdate(book);
>
>     // check to see if changes were successful.
>     print("id = "+ BookClass.getId() + " name = " + BookClass.getName());
>     print(create.executeUpdate(book));
>  }
>
>
>
>
> It's not saving the newly assigned values to the DB. But if use this class
> instead without extending any abstract class:
>
>
> public class TestBook {
>     public int id;
>     public String name;
> }
>
>
>
>
> It'll perform the update.
>
> Been spending a few hours trying to figure this out, but i'm lost~ Any
> help would be much appreciated!
>

Interesting. Will look into this soon. There shouldn't be any difference.
Have you debug-stepped through the update to see what's going on?


> Also on a side note, does JOOQ have a public community discord? If not any
> plans for one?
>

I don't know what that is - care to enlighten me?

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to