What are the primary benefits/goals of the persistence API?
The persistence API provides the following benefits: • It provides an abstraction for physical data models for greater database independence. • It isolates the java classes from data model changes (e.g., if a column is renamed, no Java code must be changed). • It provides support for user-defined object types. • It decreases the amount of time it takes to implement a new object type. • It can automatically generate SQL statements that can be run on different databases. Thus, it is possible to write one PDL file that can be used on N databases. Without persistence, a developer may be required to write N different DDL scripts and then N different sets of SQL statements to use the tables.