Talk:Java Persistence/Why use JPA or ORM?


 * RE: Provides database and schema independence.

Database independence means that the application can switch databases without impacting their code. Schema independence means that the schema could change (the names of the tables/column, but also some structure) and the application could would be un-effected. Where as hard coded SQL would need to be updated with the new table/column names. Obviously, if you add a new column, you will need to add a new attribute to your object, and update your application to make use of this attribute (although some JPA providers support dynamic objects/attributes that allow columns to be added without Java code changes).
 * James (discuss • contribs) 13:19, 16 October 2012 (UTC)