public class StuffTable extends TableImpl<Record> {
public final TableField<Record, Integer> ID = createField("id", SQLDataType.INTEGER.length(30));
public final TableField<Record, String> STUFF_NAME = createField("stuff_name", SQLDataType.VARCHAR.length(100));
public final TableField<Record, Integer> CREATOR = createField("creator", SQLDataType.VARCHAR.length(100)));
public final TableField<Record, Integer> INSPIRATION = createField("inspiration", SQLDataType.VARCHAR.length(100)));
public DonorFundsTable( ) { super("donor_funds"); }
}
...
static STUFF_TABLE = new StuffTable();
...
Record record = dslContext.insertInto(STUFF_TABLE)
.columns(STUFF_TABLE.STUFF_NAME, STUFF_TABLE.CREATOR, STUFF_TABLE.INSPIRATION)
.values(name, creator,inspiration)
.returning(DONOR_FUNDS_TABLE.ID)
.fetchOne();
dsl.insertInto(STUFF).set(STUFF.NAME, name).set(STUFF.CREATOR, creator)....execute();
dsl.insertInto(STUFF).set(dsl.newRecord(STUFF, pojo)).execute();
--
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 jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/D637ANGdSqs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+unsubscribe@googlegroups.com.