Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Maven plugin : Cross-schema foreign keys support #621
QueryDSL maven plugin does not support cross schemas, cross projects foreign key in different package.
I have two Oracle schema in two dedicated maven project (not module) with two dedicated package. A common schema (shared between projects) and an Oracle schema for my project (in fact per project). My project schema references the common schema (with synonym).
QueryDSL generates the classes for the common schema. But for the project schema, it's failing at compilation because the generated classes references the common classes and the java import is not set accordingly. With exportForeignKeys set to false the compilation succeed.
By "the custom imports could be injected" you mean "only the EntitySerializer.writeUserImports method" or "the EntitySerializer.writeUserImports method and the EntityType.imports property".
On my side, first proposition makes more sense. Serialization logic separates from EntityType specific imports
I mean to inject the userImports into the constructor of MetaDataSerializer. No changes to EntityType are needed here.