Created
September 28, 2017 22:21
-
-
Save stevenschlansker/dce25ec500fd251f3fea71f5c499a580 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common/src/main/java/com/opentable/service/agassoc/common/db/AssocWriteDao.java b/common/src/main/java/c | |
om/opentable/service/agassoc/common/db/AssocWriteDao.java | |
index 39e5c42..364fd5f 100644 | |
--- a/common/src/main/java/com/opentable/service/agassoc/common/db/AssocWriteDao.java | |
+++ b/common/src/main/java/com/opentable/service/agassoc/common/db/AssocWriteDao.java | |
@@ -11,9 +11,9 @@ import com.opentable.service.agassoc.common.Assoc; | |
public interface AssocWriteDao { | |
@SqlBatch("insert into assocs_v1 (anonid, gpid, count, created, last_modified) " + | |
- "values (:assoc.anonid, :assoc.gpid, :count, :stamp, :stamp) " + | |
+ "values (:anonid, :gpid, :count, :stamp, :stamp) " + | |
"on conflict do update assocs_v1 set count = :count, last_modified = :stamp " + | |
- "where anonid = :assoc.anonid and gpid = :assoc.gpid") | |
+ "where anonid = :anonid and gpid = :gpid") | |
@RegisterBeanMapper(Assoc.class) | |
void put(@BindBean Collection<Put> batch); | |
@@ -27,5 +27,21 @@ public interface AssocWriteDao { | |
this.count = count; | |
this.stamp = stamp; | |
} | |
+ | |
+ public String getAnonid() { | |
+ return assoc.getAnonid(); | |
+ } | |
+ | |
+ public String getGpid() { | |
+ return assoc.getGpid(); | |
+ } | |
+ | |
+ public long getCount() { | |
+ return count; | |
+ } | |
+ | |
+ public Instant getStamp() { | |
+ return stamp; | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment