Skip to content

Commit

Permalink
Work In Progress.
Browse files Browse the repository at this point in the history
refs #152
limit and offset method is not implemented.
  • Loading branch information
HidekiSugimoto189 committed Feb 11, 2019
1 parent 0aea17a commit bfddee6
Show file tree
Hide file tree
Showing 8 changed files with 1,265 additions and 84 deletions.
12 changes: 6 additions & 6 deletions src/main/java/jp/co/future/uroborosql/AbstractAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import jp.co.future.uroborosql.config.SqlConfig;
import jp.co.future.uroborosql.context.SqlContext;
import jp.co.future.uroborosql.coverage.CoverageData;
Expand All @@ -47,10 +51,6 @@
import jp.co.future.uroborosql.utils.CaseFormat;
import jp.co.future.uroborosql.utils.StringFunction;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* SqlAgentの抽象親クラス
*
Expand Down Expand Up @@ -609,9 +609,9 @@ public <E> SqlEntityQuery<E> query(final Class<? extends E> entityType) {
try {
TableMetadata metadata = handler.getMetadata(this.transactionManager, entityType);

SqlContext context = handler.createSelectContext(this, metadata, entityType);
SqlContext context = handler.createQueryContext(this, metadata, entityType);

return new SqlEntityQueryImpl<>(this, handler, context, entityType);
return new SqlEntityQueryImpl<>(this, handler, metadata, context, entityType);
} catch (SQLException e) {
throw new EntitySqlRuntimeException(EntitySqlRuntimeException.EntityProcKind.SELECT, e);
}
Expand Down
Loading

0 comments on commit bfddee6

Please sign in to comment.