You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I opened a PR about adding Long value support to Sequence NextVal.. I decided I'd keep developing using Int instead of Long so I don't have to wait for the PR to be merged.
I've realized I have another problem though - if the table is to be used as an Entity, the id column type is Column<EntityID<Int>> and not Column<Int>. So now I'm a bit lost about how to proceed, but feel it's connected in some way to #1001, so I'd hope that PR can fix both :)
// works today
private object Developer : Table() {
val id = integer("id")
var name = varchar("name", 25)
override val primaryKey = PrimaryKey(id, name)
}
// works with #1001
private object DeveloperLong : Table() {
val id = long("id")
var name = varchar("name", 25)
override val primaryKey = PrimaryKey(id, name)
}
# doesn't work right now
private object DevelopersTable : IdTable<Int>() {
override val id = integer("id").entityId()
var name = varchar("name", 25)
}
The text was updated successfully, but these errors were encountered:
afk11
changed the title
IdTable cannot use SEQUENCE nextVal
IdTable.new cannot use SEQUENCE nextVal
Jul 22, 2020
Hi,
I opened a PR about adding Long value support to Sequence NextVal.. I decided I'd keep developing using Int instead of Long so I don't have to wait for the PR to be merged.
I've realized I have another problem though - if the table is to be used as an Entity, the id column type is
Column<EntityID<Int>>
and notColumn<Int>
. So now I'm a bit lost about how to proceed, but feel it's connected in some way to #1001, so I'd hope that PR can fix both :)The text was updated successfully, but these errors were encountered: