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
Oracle issues #337
Thanks for this library, I have been playing with it but found a few things I would like to report;
Using the following config:
with oracle 11.2 querydsl generates 27 mb of garbage. It exports for some mysterious reason the whole classpath as tables, for example the whole JDK (with xml export and stuff). Very weird. It's an easy fix though, I have to set
The other issue is that it exports the views from the database also, which I don't need. The bigger problem is that the export is wrong, as the view's column names may contain illegal characters, for example #, which creates variable names like
It might work somewhat better with a toCamelCase like the following:
I have tested it with:
And it seems to work fine;
ps. you might want to change the default generation directory to
, it's more compact
and putting a config inside the execution also so that people can add multiple databases.
The whole config, with extracted properties, multiple executions, optional profile activation and deactivation, proper dependency declaration, and marking the generated sources as sources directory looks like this:
ps3. would it be possible to query the database table names as a string more easily?
Thanks, and I hope it helps,
added a commit
Feb 1, 2013
What is the schema of the garbage content? That could maybe be used to filter garbage out, if no schema pattern is given.
Could you create a new ticket for that
This has been fixed now 959dc10
But it's in a superclass which is used for both main and test side code generation.
Why? It's already in the goal definition.
That's difficult, because Querydsl has a dynamic metamodel, so the metadata is accessible via the Q-type instances.
I believe the uncapitalized version of the type name is more intuitive. Do you refer to the default variable by reflection or why do you need something constant?
referenced this issue
Feb 4, 2013
The generated 36mb has content similar to the following:
Not sure though what schema you're searching for here, I haven't set any in my config;
In Maven everything that was generated should go in the
Just so that people - who are not Maven experts - know how to change the default phase.
I was just referring to the Singleton inside the main class. It's usually called INSTANCE, so instead of
com.mysema.querydsl querydsl-sql 3.2.4
I am trying to generate the domain classes. Oracle version 11g (184.108.40.206.7). I am executing the mvn command
Does it also generate nothing if you leave schemaPattern and
On Sun, Nov 3, 2013 at 7:03 PM, sauravGit firstname.lastname@example.org wrote:
On Sun, Nov 3, 2013 at 7:25 PM, sauravGit email@example.com wrote:
schemaPattern and tableNamePattern are inclusion patterns. If they are not
You probably provided values that excluded everything. Try different values.
What kind of filtering do you want to apply? When you only need to restrict
On Sun, Nov 3, 2013 at 8:29 PM, sauravGit firstname.lastname@example.org wrote: