Hi Salvatore, Without knowing DWR, I suspect that the runtime that is executing your code does not have access to the jooq runtime binaries... However, it is hard to say what went wrong in your case. How did you set up the project? What's the exact stack trace? Does everything else work (e.g. setting up the JDBC connection)?
- Lukas 2015-04-24 16:15 GMT+02:00 Salvatore DI DIO <[email protected]>: > Hello, > > I am trying to use JOOQ with DWR (direct web remoting). > in the following code : > But DWR report an error : class org.jooq.Table not found > > Any clue ? > > regards > > public static void main(String[] args) { > String userName = ""; > String password = ""; > String url = "jdbc:sqlite:C:\\Users\\sdi-dio-adc\\DWRContactsDB"; > > try (Connection conn = DriverManager.getConnection(url, userName, > password)) { > > Contact contact = Contact.CONTACT; > > DSLContext ctx = DSL.using(conn, SQLDialect.SQLITE); > > ctx.insertInto(contact) > .set(contact.NAME, "Paul") > .set(contact.EMAIL, "[email protected]") > .set(contact.PHONE, "45465465") > .execute(); > > ctx.select() > .from(contact) > .fetch() > .map(rs -> rs.getValue(contact.NAME)) > .forEach(System.out::println); > > for( ContactRecord c : ctx.fetch(contact)){ > c.setName("Marcel"); > c.store(); > System.out.println(c.getName()+"|"+c.getPhone()); > } > } > catch (Exception e) { > e.printStackTrace(); > } > > } > > -- > 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. > -- 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.
