Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Unindexed unsearched properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsom committed Apr 22, 2015
1 parent 5d63e34 commit 2e0f824
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main/groovy/domain/Image.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import groovy.json.JsonBuilder
import groovy.transform.ToString
import groovyx.gaelyk.datastore.Entity
import groovyx.gaelyk.datastore.Ignore
import groovyx.gaelyk.datastore.Unindexed
import util.AppUtil
import util.MyInit
import util.Shortener
Expand All @@ -21,9 +22,9 @@ import util.Shortener
@ToString
class Image implements Serializable {
String imageUrl
long impressions = 0
long likes = 0
long dislikes = 0
@Unindexed long impressions = 0
@Unindexed long likes = 0
@Unindexed long dislikes = 0
long credits = 100
Boolean isDeleted = false

Expand Down
3 changes: 2 additions & 1 deletion src/main/groovy/domain/UserList.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package domain

import groovy.transform.ToString
import groovyx.gaelyk.datastore.Entity
import groovyx.gaelyk.datastore.Unindexed

/**
* Created by rahulsomasunderam on 8/9/14.
Expand All @@ -10,7 +11,7 @@ import groovyx.gaelyk.datastore.Entity
@ToString
class UserList implements Serializable {
String username
List<String> hashes
@Unindexed List<String> hashes

static UserList findByUsername(String un) {
UserList.find {
Expand Down

0 comments on commit 2e0f824

Please sign in to comment.