Dozer - Object Mapper
December 6, 2005 · 2 Comments
Over the weekend I was reading JDJ (yes, I've started getting it again... no, I don't know why I'm back on Sys-Con's list!) and they recently had an "Extreme Makeover: Architecture Edition" feature (October).
The article related Franz Garsombke's experiences refactoring a large, poorly-structured Java application using five iterations. Along the way, explaining the benefits of layered architecture, dependency injection, AOP, mock objects (for testing), DAOs / Hibernate and Spring, he talks about creating a framework for mapping JavaBeans across application layers / interfaces. They made it available as an open source project called Dozer. It's an interesting idea and I can see its applicability in the ColdFusion world as well, especially now we are starting to see the use of dependency injection (ColdSpring) and ORM libraries (like Arf!, Transfer, Reactor, objectBreeze etc).
However, when I went and looked at the documentation, the XML (which describes the mapping between objects) struck me as being pretty ugly (tags called classA, classB, A and B for example). I'd be interested to hear whether anyone has used Dozer and / or whether anyone has created something similar for ColdFusion...
Tags: coldfusion · orm

2 responses so far ↓
1 Sami Hoda // Dec 7, 2005 at 1:19 PM
Joe Rinehart's class at CFUnited was similar to this. So was Simon Horwith's...
They are the only ones I know who have something similar to this...
Sami
2 Franz Garsombke // Dec 8, 2005 at 10:24 PM
I would love to hear your ideas around renaming our XML tags. We are in the process of doing some infrastructure work and making the XML tags more consistent and readable is on our list.
Thanks,
Franz
Leave a Comment