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.

Reply via email to