It's not clear what your goals are, but here's a few pointers that may help.
1. You only need beginTransaction/CommitTransaction for persistent updates. They're not needed here.
2. You can invoke the Jade object inspector to interactively inspect objects: e.g. Books.firstInstance.inspect(), or books.firstInstance.inspectModal(), if you want.
3. You can list details of all objects in a collection with a 'foreach' loop (presuming Books is a collection of Book):
Code: Select all
foreach book in Books.firstInstance do
write book.display; // display will list individual properties
endforeach;