13.6. Summary

This chapter presented various best practices applicable when working with JDO.

The section called “Data Modeling” covered best practices for modeling and coding the domain model of persistent classes. Advanced applications may wish to fine tune usage of certain JDO features and, for example, store some fields embedded in others, use arrays for small collections of fixed size multi-value fields, reference to non-persistence-capable classes, and so on. For the other 80 percent of all applications, however, the usage guidelines presented should prove useful.

A brief discussion on JDO and the Servlet API showed how transparent persistent could be used directly from within Web applications. Some similarities to concepts seen in the ...

Get Core Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.