kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 835cbb4c43e6e922c0de567e1f77228b44ce67b5a24993d0a6a20f371eafd7c2 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-07-01 12:28 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-07-01 12:28 +02:00 |
| Parents | 0d06ef6c86a5 |
1 file changed
modified driver-mapping/src/test/java/com/datastax/driver/mapping/MapperComputedFieldsTest.java +0 −53
| @@ -189,59 +189,6 @@ | ||
| 189 | 189 | ResultSet all(); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - @Table(name = "key_value") | |
| 193 | - public static class KeyValue { | |
| 194 | - @PartitionKey | |
| 195 | - private int key; | |
| 196 | - private String v; | |
| 197 | - | |
| 198 | - @Computed(formula = "writetime(\"v\")") | |
| 199 | - long writeTime; | |
| 200 | - | |
| 201 | - @Computed(formula = "ttl(v)") | |
| 202 | - Integer ttl; | |
| 203 | - | |
| 204 | - public KeyValue() { | |
| 205 | - } | |
| 206 | - | |
| 207 | - public KeyValue(int k, String val) { | |
| 208 | - this.key = k; | |
| 209 | - this.v = val; | |
| 210 | - } | |
| 211 | - | |
| 212 | - public int getKey() { | |
| 213 | - return this.key; | |
| 214 | - } | |
| 215 | - | |
| 216 | - public void setKey(int pk) { | |
| 217 | - this.key = pk; | |
| 218 | - } | |
| 219 | - | |
| 220 | - public String getV() { | |
| 221 | - return this.v; | |
| 222 | - } | |
| 223 | - | |
| 224 | - public void setV(String val) { | |
| 225 | - this.v = val; | |
| 226 | - } | |
| 227 | - | |
| 228 | - public long getWriteTime() { | |
| 229 | - return this.writeTime; | |
| 230 | - } | |
| 231 | - | |
| 232 | - public void setWriteTime(long pk) { | |
| 233 | - this.writeTime = pk; | |
| 234 | - } | |
| 235 | - | |
| 236 | - public Integer getTtl() { | |
| 237 | - return this.ttl; | |
| 238 | - } | |
| 239 | - | |
| 240 | - public void setTtl(Integer ttl) { | |
| 241 | - this.ttl = ttl; | |
| 242 | - } | |
| 243 | - } | |
| 244 | - | |
| 245 | 192 | @Table(name = "user") |
| 246 | 193 | public static class User_WrongComputedType { |
| 247 | 194 | @PartitionKey |