diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-04 22:17:12 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-04 22:17:12 +0100 |
commit | e7addeeb21ab8293855554f361619e4c57c3c1b4 (patch) | |
tree | 1bbc37bb5c12a14f3e7126f3cbcdebe1f2cb7486 | |
parent | 23ce147dd2be1d1956a3ce6e0d2be13c6bd665cf (diff) | |
download | esper-testing-e7addeeb21ab8293855554f361619e4c57c3c1b4.tar.gz esper-testing-e7addeeb21ab8293855554f361619e4c57c3c1b4.tar.bz2 esper-testing-e7addeeb21ab8293855554f361619e4c57c3c1b4.tar.xz esper-testing-e7addeeb21ab8293855554f361619e4c57c3c1b4.zip |
o UUID => Uuid.
-rwxr-xr-x | src/main/java/io/trygvis/esper/testing/core/db/BuildDao.java | 4 | ||||
-rwxr-xr-x | src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/core/db/BuildDao.java b/src/main/java/io/trygvis/esper/testing/core/db/BuildDao.java index e8623f2..cd103d6 100755 --- a/src/main/java/io/trygvis/esper/testing/core/db/BuildDao.java +++ b/src/main/java/io/trygvis/esper/testing/core/db/BuildDao.java @@ -90,10 +90,10 @@ public class BuildDao { } } - public List<BuildDto> selectBuildsByPerson(UUID person, PageRequest page) throws SQLException { + public List<BuildDto> selectBuildsByPerson(Uuid person, PageRequest page) throws SQLException { try (PreparedStatement s = c.prepareStatement("SELECT " + BUILD + " FROM build b, build_participant bp WHERE bp.person=? AND b.uuid = bp.build ORDER BY created_date DESC LIMIT ? OFFSET ?")) { int i = 1; - s.setString(i++, person.toString()); + s.setString(i++, person.toUuidString()); s.setInt(i++, page.count.orSome(10)); s.setInt(i, page.startIndex.orSome(0)); return toList(s, build); diff --git a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java index 5849647..aa7a5ee 100755 --- a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java +++ b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java @@ -94,7 +94,7 @@ public class CoreResource extends AbstractResource { @GET @Path("/build") - public List<BuildJson> getBuilds(@MagicParam final PageRequest page, @MagicParam(query = "person") final UUID person) throws Exception { + public List<BuildJson> getBuilds(@MagicParam final PageRequest page, @MagicParam(query = "person") final Uuid person) throws Exception { return da.inTransaction(new DatabaseAccess.DaosCallback<List<BuildJson>>() { public List<BuildJson> run(Daos daos) throws SQLException { List<BuildDto> buildDtos; |