Hi Kevin, Just to be sure, in your snippet, you didn't omit any "else" or "return" or any other sort of statement that would break out of the method prior to checking your instanceof AuditTable check?
Also, what's the complete code of your visit listener right now? When is pushConditions() called? Lukas 2017-05-18 0:30 GMT+02:00 Kevin Embree <[email protected]>: > One step closer, yet no joy. > I customized the Generation Strategy and get a Table that implements a > custom interface 'AuditedTable' > public class Junit extends TableImpl<JunitRecord> implements AuditedTable > { > > But in the visitListener ... > <E> void pushConditions(VisitContext context) { > if (context.queryPart() instanceof Table){ > LOG.info("... Table " + context.queryPart().toString()); > // Check if we're visiting a special table > if ((context.queryPart()) instanceof AuditedTable) { > LOG.info("... AuditedTable " + > context.queryPart().toString()); > 'instanceof Table' works as I expected. > But 'Instanceof AuditedTable' doesn't. I must be misunderstanding how the > AST queryParts work. > Any nudge in the right direction would greatly appreciated. > > -- > 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.
