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

Generate table comments into generated Tables.java as Javadoc #1033

Closed
lukaseder opened this issue Jul 22, 2012 · 4 comments
Closed

Generate table comments into generated Tables.java as Javadoc #1033

lukaseder opened this issue Jul 22, 2012 · 4 comments

Comments

@lukaseder
Copy link
Member

No description provided.

@ghost ghost assigned lukaseder Jul 22, 2012
@joe-thurbon
Copy link

Hi Lukas.

I'm attempting to use this feature in 3.4.1. In org.jooq.util.postgres.PostgresDatabase, line 269 indicates to me that this feature is not being used for this database. (And the related Table.getComment() also doesn't work).

Am I missing something?

Many thanks,
Joe

@joe-thurbon
Copy link

This code might be useful for you, replacing line 269. (Sorry, I'm quite new to Git, I'm not sure how I should share this stuff, or if you want it :))

        String comment = "";
        ResultQuery<Record> r = create().resultQuery(String.format("SELECT obj_description('%s.%s'::regclass, 'pg_class')", schema, name));
        Object commentObject = r.fetchOne(0);
        if (commentObject != null)
        {
            comment = commentObject.toString();
        }

@lukaseder
Copy link
Member Author

@joe-thurbon : Thanks for your comments and analysis. I will implement something along the lines of your suggestion in #3597 for jOOQ 3.5.0.

Btw: No worries, almost any means of reporting is fine :-)

@joe-thurbon
Copy link

Thanks. Looking forward to 3.5.0 already :)

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

2 participants