Skip to content

Repository files navigation

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)
	// ...
}

About

Add Bson ObjectId Support for Kotlin Exposed

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages