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

Comments

Projects
None yet
2 participants
@joaogalli

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 20, 2013

Member

Fixed

Member

timowest commented Nov 20, 2013

Fixed

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Dec 12, 2013

Member

Released in 3.3.0.BETA2

Member

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