Skip to content

Instantly share code, notes, and snippets.

@mchernyavskaya
Created August 22, 2019 14:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchernyavskaya/cd8bdf29838a68b06fac7f36ec970bda to your computer and use it in GitHub Desktop.
Save mchernyavskaya/cd8bdf29838a68b06fac7f36ec970bda to your computer and use it in GitHub Desktop.
@Document(collection = "productPrice")
data class ProductPrice(
@Id
val id: String? = null,
val sku: String,
val price: Double
)
interface ProductPriceRepository : MongoRepository<ProductPrice, String>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment