https://kotlinlang.org logo
#exposed
Title
# exposed
p

Polis Gints

08/06/2019, 12:02 PM
fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message } } }
s

spand

08/06/2019, 12:14 PM
fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message }[blogId] } }
p

Polis Gints

08/06/2019, 12:17 PM
yeah.. cool it works. To return whole inserted object, I should do select correct?
many thx