Monday, June 11, 2012
What is the meaning of persistence in java?
Persistence means 'to save'. In java, persistence is referred to saving the state of an objectfrom memory to some other media (mostly permanent media such as hard disk, but it can be a database, a network stream etc. etc.).Hibernate is an Object to Relational mapping framework. It helps in persisting (or saving)and loading (a.k.a mapping) the state of objects in your application to a relationaldatabase management system. The reason it is so popular is because it is based onconfiguration files (also called as declarative programming). It generate all the boilerplateJDBC code for you, you just have to focus on the API's methods to persist the objectsfrom your java programs