Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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