Hi John, > When running the generated on a large schema the > Keys.java files is too large to compile > > The code for the static initializer is exceeding the 65535 bytes limit
I see, I hadn't thought of the method bytecode size limitation in Java. > Keys.java > UniqueKeys count 919 > ForeignKeys count 1953 > > I solved the problem by manually copying all the ForeignKeys > to a new Class ForeignKeys.java and fixing up all the references in > all the table classes. 2000 foreign keys is not an exceptionally big number, so one can assume that separating the key types into various files will only postpone the problem until the database schema sufficiently increases... The best way to thoroughly solve this is probably to put foreign key declarations in table classes, directly. I'll fix this as issue #1459: https://sourceforge.net/apps/trac/jooq/ticket/1459 Did you run into similar issues with the generated Tables.java class, which references all tables in a schema? Cheers Lukas
