I want to select from multiple tables and convert the result to json using ActiveJDBC
http://javalite.io/record_selection
I can do the following but it will of course return only the columns in the model book, I don't see the columns from the authors model. How would it be possible to achieve that?
LazyList<Book> book = Book.findBySQL("select books.*, authors.* from books, authors where books.author_id = author.id");
jsonOutput = book.toJson(true);