Introduction
In the previous chapter, we discussed how to use secondary indexes to improve data access in DynamoDB. In this chapter, we will discuss how to use the object persistence model to perform various operations in DynamoDB. DynamoDB provides APIs for the object persistence model as an out-of-the-box feature of its SDKs. These APIs only support item-level operations; they don't support table or secondary indexes level operations, so to perform recipes given in this chapter, you need to have at least a table created using any of the methods described in the earlier chapters.
The object persistence model helps you create and maintain applications in a much cleaner and neater way. The annotation-based implementation provides great readability and is easy to use.