複数のテーブルから選択し、その結果を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);