Monthly Archives: June 2010

JDO Typesafe Refactorable Queries

One of the primary drawbacks with current JDO queries is that they are string-based, so you are hardcoding field names etc. When you refactor a (model) class, the field names are left unchanged, so the query no longer works. Some … Continue reading

Posted in JDO, JDOQL | 8 Comments

Persisting multisets (bags) with DataNucleus

A multiset is a set where you can have a particular object multiple times in the set (a normal java.util Set will remove dups). This is also known by some as a “bag”. Google’s Collections library has such a container … Continue reading

Posted in JDO, JPA, Persistence | Leave a comment