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.