The updating isn't even going through. when I replace this
BooksRecord book = create.newRecord(BOOKS, myBook); with this: BooksRecord book = create.newRecord(BOOKS, BookClass.class); it'll update in the DB but with just the (BookClass.class) in string format. So I think the issue lies somewhere here? Discord is basically like skype / teamspeak / msn. But on a larger scale. Business use it for communication, while gamers use it to stay in touch. You should check it out. It's free and highly customizable. Basically visitors or staff can post/discuss in real time. But that might go against what this whole group is for, but you should still look into it and see if it fits your style. Regards~ On Thursday, May 3, 2018 at 4:54:12 AM UTC-4, Lukas Eder wrote: > > > > 2018-05-03 10:48 GMT+02:00 xragons <[email protected] <javascript:>>: > >> 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.
