Code Generator: Ability to generate a Java package per database schema
Bug #704933 reported by
cowwoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'd like the code generator to translate schema names to package names. Take for example the H2 database that contains two schema names: INFORMATION_SCHEMA and PUBLIC. If "packageName" is set to "foo.queries" then I expect the code generator to generate "foo.queries.
I fear the current strategy of generating all classes into the same package will lead to name conflicts.
To post a comment you must log in.
I am afraid this would become too complex, since the old use cases should be supported as well. The supported way to avoid name clashes is to use schemaPattern.
If you need contents of two schemas you need two schema generations, which is also not an issue.