I have a table USER_ROLES that has 5 columns. Also, a class UserRole that has the same number of fields and names as USER_ROLES.
I'm trying to insert a row without specifying the column names:
UserRole ur = new UserRole();
// UserRole fields setting
create.insertInto(USER_ROLES).values(ur).execute();
But I get this error when I attempt to create the row:
The number of values must match the number of fields
Am I forced to specify the column names?