Hmm, have you followed the tutorial step by step? Here's how to configure the code generator: http://www.jooq.org/doc/3.1/manual/getting-started/tutorials/jooq-in-7-steps/jooq-in-7-steps-step3/
This page explains how to static import generated artefacts: http://www.jooq.org/doc/3.1/manual/getting-started/tutorials/jooq-in-7-steps/jooq-in-7-steps-step4/ Cheers Lukas 2013/9/17 Adriana Gomez <[email protected]> > Hi, > > I could not find an example in the tutorial about how to define the tables > and columns to be used. In the tutorial it says you can do things like: > > select(BOOK.ID).from(BOOK); > > How do I need to define BOOK in order to have access to it's ID??? > > I have something like: > > public interface BookSql { > > String TABLE_NAME = "BOOK"; > Table<?> TABLE = table(TABLE_NAME); > Field<Long> ID = fieldByName(Long.class, "ID"); > } > > So I can access the ID of the BOOK like you are suggesting. What am I > missing? > > PD: Sorry if this is a very simple question... > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
