Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let code generator reflect PostgreSQL table inheritance in generated tables, records, pojos, daos #2777

Open
lukaseder opened this issue Oct 11, 2013 · 1 comment

Comments

@lukaseder
Copy link
Member

lukaseder commented Oct 11, 2013

PostgreSQL is an ORDBMS, supporting table inheritance, which might map quite nicely to Java class inheritance. This could be leveraged by the code generator, adding some more semantics to generated artefacts.


This was also requested here:

See also

lukaseder added a commit that referenced this issue Oct 16, 2013
lukaseder added a commit that referenced this issue Oct 16, 2013
…nerated tables, records, pojos, daos

- Added inheritance capability to jOOQ-Meta
@lukaseder
Copy link
Member Author

lukaseder commented Oct 16, 2013

Modelling inheritance in jOOQ's table hierarchy might not be so easy because of the fact that generated tables terminate the generic-self-bound on <R> as documented here:
http://blog.jooq.org/the-dangers-of-correlating-subtype-polymorphism-with-generic-polymorphism/

Tampering with this type hierarchy could be very complicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant