Created
August 7, 2022 23:48
-
-
Save elyphas/38cd69f29c949439ad5f460cf3736619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class BatchAndExpiration(batch: String, expiration: Long) | |
case class ItemInputScarango ( | |
entidad: String, | |
batchAndExpiration: Option[BatchAndExpiration], | |
_id: Id[ItemInputScarango] = ItemInputScarango.id() | |
) extends Document[ItemInputScarango] | |
object ItemInputScarango extends DocumentModel[ItemInputScarango] { | |
override implicit val rw: ReaderWriter[ItemInputScarango] = ccRW | |
override val collectionName: String = "tblInputs_details" | |
def ref: DocumentRef[ItemInputScarango, ItemInputScarango.type] = DocumentRef(this, Some("i")) | |
} | |
//I tried this but didn't work: | |
object BatchAndExpiration { | |
override implicit val rw: ReaderWriter[BatchAndExpiration] = ccRW | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment