when using Exposed DAO? i got this when tried to create
Copy code
val created = User.new {
username = "Ray Eldath"
email = "<mailto:xxx@xxx.com|xxx@xxx.com>"
}
Authorization.new {
user = created
hashedPassword = hp.toBlob()
role = UserRole.Root
}
in which
Authorization.id
is refer to
User.id
. any idea on this exception?
many thanks. 🙃
e
Evan R.
01/29/2020, 1:42 PM
What part of the code is the exception thrown from? Just the authorization.new() call or specifically one of the assignments?
r
Ray Eldath
01/29/2020, 1:45 PM
well, I specify the location and code in my next message, see below.
many thanks.
e
Evan R.
01/29/2020, 5:16 PM
I see the related code (the table and DAO definitions) but I’m not sure where your exception is being thrown from. What stack trace is being given?