Fix for java6

This commit is contained in:
Travis Burtrum 2018-05-07 23:10:20 -04:00
parent 05ac1d3f84
commit 9f00f4924f
3 changed files with 15 additions and 7 deletions

View File

@ -8,6 +8,10 @@ import java.sql.SQLException;
import java.util.List;
import java.util.Map;
//IFJAVA8_START
import java.util.stream.Stream;
//IFJAVA8_END
@JdbcMapper.Mapper(
cachePreparedStatements = JdbcMapper.OptionalBool.FALSE
, allowReflection = JdbcMapper.OptionalBool.TRUE
@ -160,7 +164,7 @@ public interface QmDao extends JdbcMapper {
//IFJAVA8_START
@SQL(selectThreePeople)
java.util.stream.Stream<FieldPerson> getThreePeopleStream(long personNo1, long personNo2, long personNo3) throws SQLException;
Stream<FieldPerson> getThreePeopleStream(long personNo1, long personNo2, long personNo3) throws SQLException;
//IFJAVA8_END
}

View File

@ -12,6 +12,10 @@ import java.sql.SQLException;
import java.util.List;
import java.util.Map;
//IFJAVA8_START
import java.util.stream.Stream;
//IFJAVA8_END
import static com.moparisthebest.jdbc.TryClose.tryClose;
public class QueryMapperQmDao implements QmDao {