Displaying posts tagged with

“database”

Dec
21
2009

Untangling a Gigaspace Pojo

A hibernate entity class is annotated describing to hibernate how its to be persisted. Annotate this class with JAXB for a transformation, chuck in some gigaspace annotations so we can add it to a cache and things start to get messy. Worse still gigaspace has some tight restrictions surrounding what it requires from a pojo, hibernate has others. Its tempting to leave the resulting class cluttered with these soft concerns. I propose a solution using composition that allows for easier maintenance ongoing.

Dec
7
2009

Unitils update – Its great!

In a previous post I looked at Unitils. This is a quick update: Yes its great but the product could do with some polish, better documentation, bug fixing and some api revision. Despite that its still the best system I have looked at to test a DAO. Also the project is alive and kicking, it looks like there is more to come in future revisions. See the full post for more detail.

Nov
22
2009

Lessons on testing a JPA Dao

I wanted to explore unit testing JPA DAO and models. Hand crafting solutions is quite time consuming. I found something called Unitils which refines another project Dbunit. In theory it should significantly reduce the complexity and save some time. So one Saturday, I sat down to explore the space and write this blog.