all calls in transaction(){ } block are executed in single
transaction, which is commited by default or rollbacked if any
exceptions arised.
also smth interesting you can find in tests, e.g. here:
http://code.google.com/p/orbroker/source/browse/src/test/scala/test/orbroker/example/TestBroker.scala?name=3.2
especially with "transactional" blocks, where you can commit/rollback explicitly
Nicholas
2011/5/28 Eduardo M. Cavalcanti <eduardo.c...@eversystems.com.br>:
Or, if you need apply an extractor, use Token like this:
val token = Token("SELECT * FROM TABLE", 'id, Extractor, "foo"->bar)