Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException generating Query Types for SQLite #566

Closed
joaogalli opened this issue Nov 20, 2013 · 2 comments
Closed

NullPointerException generating Query Types for SQLite #566

joaogalli opened this issue Nov 20, 2013 · 2 comments
Milestone

Comments

@joaogalli
Copy link

@joaogalli joaogalli commented Nov 20, 2013

As posted in the groups: https://groups.google.com/forum/#!topic/querydsl/1urzrYz9xYI

I have a database test.db with the schema:
CREATE TABLE contact (id INTEGER PRIMARY KEY, name TEXT);

And my Java code for generation (already tried in Maven, and have the same error):
Class.forName("org.sqlite.JDBC"); // Using Xerial driver.
String dbURL = "jdbc:sqlite:/Users/joaoeduardogalli/teste.db";
java.sql.Connection conn = DriverManager.getConnection(dbURL);
MetaDataExporter exporter = new MetaDataExporter();
exporter.setPackageName("br.com.sovi.contact");
exporter.setTargetFolder(new File("target/generated-sources/java"));
exporter.export(conn.getMetaData());

The error:
java.lang.NullPointerException
at com.mysema.query.sql.codegen.DefaultNamingStrategy.getPropertyNameForPrimaryKey(DefaultNamingStrategy.java:90)

Using:
QueryDSL 3.2.4
on MacOSX Mavericks
with Java 1.7

timowest added a commit that referenced this issue Nov 20, 2013
@timowest
Copy link
Member

@timowest timowest commented Nov 20, 2013

Fixed

@timowest
Copy link
Member

@timowest timowest commented Dec 12, 2013

Released in 3.3.0.BETA2

@timowest timowest closed this Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants