Coding with Scala? How about both getting rid of ORM and reducing your query and query result iterator to something like this?

    val result = db query { person: Person => person.name.contains("t") }
    for(person <- result) println(person.name)

Software developer Matthew Todd explains in this recent blog post how to code less when dealing with persistence on Scala thanks to both Scala extensibility and db4o simplicity.

"I have plenty of experience with various object relational mapping frameworks, but wanted to try an alternative framework,  one which should result in clean code, with no need to have the performance hit, and configuration complexity often associated with ORM.
[...]
I think the simplicity of the API that db4o provides is certainly a good match with Scala and if the query optimisation issue can be solved, then one that is worth looking at further."

Thanks Mat! =)