tjohnn
val id = Roles.insertAndGetId { it[name] = ROLE_ADMIN;it[createdAt] = DateTime.now();it[updatedAt] = DateTime.now() }
UserEntity.new { email = "<mailto:admin@test.com|admin@test.com>" roleId = id emailVerified = true password = 'password' createdAt = DateTime.now() updatedAt = DateTime.now() }
INFO Exposed - Transaction attempt #2 failed: Invalid argument value: java.io.NotSerializableException. Statement(s): null
Column<T>
IdTable<T>
tapac
object Users: LongIdTable("users"){ ... val roleId = reference("role_id", Roles.id, ReferenceOption.CASCADE) ... }
Roles
IntIdTable
object Users: LongIdTable("users"){ ... val roleId = reference("role_id", Roles, ReferenceOption.CASCADE) ... }
A modern programming language that makes developers happier.