Thursday, May 6, 2010

Bean Mapping

While playing with GWT and GAE I discovered the need for Bean mapping, so that beans built via the DataNucleus JDO implementation can get serialised across to GWT without throwing a com.google.gwt.user.client.rpc.SerializationException associated with org.datanucleus.store.appengine.query.StreamingQueryResult.

Normally I like DTO layers anyway, because I want to control the aspects of the Domain that make it through to the client. I've built crappy reflection-based mappers of my own, but have since discovered some nice ones:

This is a simpler implementation, which is allegedly faster than Gilead.


This has nice integration with GWT, Hibernate and other frameworks, which should speed development, but will discourage use of DTOs that differ from the domain objects.
Dozer feels like more my style right now :-)

No comments:

Post a Comment