我想从多个表中选择并使用 ActiveJDBC 将结果转换为 json
http://javalite.io/record_selection
我可以执行以下操作,但它当然只会返回模型书中的列,我看不到作者模型中的列。怎么可能做到这一点?
LazyList<Book> book = Book.findBySQL("select books.*, authors.* from books, authors where books.author_id = author.id");
jsonOutput = book.toJson(true);