org.sfm.querydsl.README.md Maven / Gradle / Ivy
QueryDSL Jdbc
------
```java
SQLQuery sqlQuery = new SQLQueryImpl(conn, new HSQLDBTemplates());
try {
return sqlQuery
.from(qTestDbObject)
.where(qTestDbObject.id.eq(1l))
.list(new QueryDslMappingProjection(DbObject.class,
qTestDbObject.id,
qTestDbObject.name,
qTestDbObject.email,
qTestDbObject.creationTime,
qTestDbObject.typeName,
qTestDbObject.typeOrdinal ));
} finally {
conn.close();
}
```
© 2015 - 2025 Weber Informatics LLC | Privacy Policy