> Did you run into similar issues with the generated Tables.java class, > which references all tables in a schema?
I'm getting the "code size too large" error on the generated SchemaImpl class using JOOQ 2.6.2. My schema has more than 15,000 tables. SB On Sunday, May 27, 2012 8:30:09 AM UTC-7, Lukas Eder wrote: > > 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 > -- 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.
