cheptsov / kotlin-nosql

NoSQL database query and access library for Kotlin
212 stars 32 forks source link

Define a base class for document #1

Open cheptsov opened 10 years ago

cheptsov commented 10 years ago

Define a base class for document having id reference. A document schema should check the type of document.

abstract Document<P, T: DocumentSchema> {
   val id : Id<P, T>? = null
}