Great book. I'm learning much about Hibernate I never understood before. One area where I believe good hibernate patterns and techniques are missing is in the area of separating presentation and logic with regards to updating objects.
For example, the book mentions quite a bit the method of using detached objects as DTOs between presentation and logic. Yet the book seems to recomend a non logic based method of manipulating data. Creating, Deleting, and Querying all seem to be handled quite well by hibernate and the recomended patters but patterns for modifying data are covered very lightly. It almost seems like the implied approach to modify data is doing it in the presentation and not in the logic. If I want to put modify logic in a different tier then it would seem impossible to use the recomended DTO patterns.
Is it possible that we could get more examples in caveatemptor on how complicated modify and update logic and be handled when working in hibernate? I'm aware of
http://hibernate.org/156.html but that method seems very difficult to manage and a cluge. Much more difficult then it seems the problem should be. If that is the best way to handle such a situation then I'd perhaps like to see an example of using that pattern in caveatemptor.
Regards,
Mike