I've a table that does not have a primary key but a composite key that is 
unique. In the absence of a primary key, the code in 
JavaGenerator.generateDao() is skipping DAO generation. Shouldn't it 
instead attempt to pick the unique key, if present, as shown below? Also, I 
recommend that a warn message be generated instead of an info message under 
such circumstances.

        UniqueKeyDefinition key = table.getPrimaryKey();
        if (key == null) {
            if (table.getUniqueKeys().isEmpty()){
                Log.warn("Skipping DAO generation", out.file().getName());
                return;
            } else {
                key = table.getUniqueKeys().get(0);
            }
        }

-- 
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