Reference implementation of querydsl-support-api.
return querydslSupport.execute(new QuerydslCallable<Long>() {
@Override
public Long call(Connection connection, Configuration configuration) throws SQLException {
QResource qResource = new QResource("qResource");
SQLInsertClause insertClause = new SQLInsertClause(connection, configuration, qResource);
return insertClause.executeWithKey(qResource.resourceId);
}
});
return querydslSupport.execute((connection, configuration) -> {
QResource qResource = new QResource("qResource");
SQLInsertClause insertClause = new SQLInsertClause(connection, configuration, qResource);
return insertClause.executeWithKey(qResource.resourceId);
});