Java Reference
In-Depth Information
paradigm, as mapped statements are not unlike methods. Parameter map names,
if used at all, are based on statement names because they have limited reusability.
However, result maps are reusable and are therefore named after the type that
they map.
Choosing which type to map was the focus of the final topic of the chapter.
Should you use JavaBeans, maps, or XML in your domain model? The answer is
clear. You should use JavaBeans for your business object model. Maps and XML
suffer from similar disadvantages, including poor performance and lack of type
safety, and both can be a maintenance nightmare in the future.
Search WWH ::




Custom Search