Thread
#exposed
    p

    Polis Gints

    3 years ago
    fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message } } }
    s

    spand

    3 years ago
    fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message }[blogId] } }
    p

    Polis Gints

    3 years ago
    yeah.. cool it works. To return whole inserted object, I should do select correct?
    many thx