Hi,

What Ben was referring to is documented here:
http://www.jooq.org/doc/2.6/manual/code-generation/codegen-advanced/#N12556

You will need to activate <relations/> in your code-generation
configuration:

<!-- These properties can be added to the generate element: -->
<generate>
  <!-- Primary key / foreign key relations should be generated and used.
       This is a prerequisite for various advanced features.
       Defaults to true -->
  <relations>true</relations>


Note that only generated tables return references. Custom tables will have
to manually override the getReferences() method.

Cheers
Lukas

2013/1/18 Gayathri B S <[email protected]>

> Hi,
>
> Is there a way by which I can find out whether a table has child tables
> and parent tables and list them.
>
> I have tried getReferences() to know about its useage. But its returning
> null(Empty list) to me.Can I know the reason.My table has both PK and FK
> relationships.
>
>
>
>
>
>

-- 
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/groups/opt_out.


Reply via email to