im trying to insert a new record in my table
public void saveNewBook(ModelBook bookFilled) {
ModelBook book1 = create.newRecord("MyTableOfBooks", bookFilled); //in this part keep saying:
The method newRecord(Table, Object) in the type DSLContext is not applicable for the arguments (String, ModelBook)
but its the same way as this: http://www.jooq.org/doc/2.5/manual/sql-execution/fetching/pojos/
so i cant do the:
//book1.store();
}
The DSLContext.newRecord(Table, Object)
method takes a Table
reference as its first argument, not a string. Ideally, you would pass a generated reference of your book table to that method.