Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 942 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 942 Bytes

Exposed Object Id

Maven Maven GitHub License

An extension to Exposed in supporting ObjectId as primary keys, for developers who want to migrate their data from MongoDB to any other RDB.

Usage

object MyTable : Table() {
	val foo = objectId("foo")/*.autoGenerate()*/
}
object MyTable : ObjectIdTable() {
	// ...
}

class MyEntity(id: EntityID<ObjectId>) : ObjectIdEntity(id) {
	companion object : ObjectIdEntityClass<MyEntity>(MyTable)
	// ...
}