Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created August 22, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchernyavskaya/760a5dfddea660404e65ae6287bd9efc to your computer and use it in GitHub Desktop.
Save mchernyavskaya/760a5dfddea660404e65ae6287bd9efc to your computer and use it in GitHub Desktop.
@Document(collection = "priceHistory")
data class PriceHistory(
@Id
val id: String? = null,
val sku: String,
val prices: MutableList<PriceEntry> = mutableListOf()
)
data class PriceEntry(
val price: Double,
val expired: Date? = null
)
interface PriceHistoryRepository : MongoRepository<PriceHistory, String>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment