About Me

My photo
"Enoughtheory.com" had its humble beginning in the year 2011 by ( Founder of Enoughtheory.com ) Mr Ravi Kant Soni , an Enterprise Java and Spring Framework Specialist, with a bachelor degree (B.E) in Information Science and Engineering from Reva Institute of Technology at Bangalore. He has been into the software development discipline for many years now. Ravi has worn many hats throughout his tenure, ranging from software development, designing multi-tenant applications, integration of new technology into an existing system, to his current love of writing a Spring Framework book. Currently, he is a lead engineer at HCL Technology. Ravi has focused on Web and Enterprise development using Spring Framework for most of his career and has been extensively involved in application design and implementation. He has developed applications for Core-Bank, HR and Payroll System, and e-Commerce systems using Spring Framework. Ravi Kant Soni is author of book "Learning Spring Application development" http://learningspringapplicationdevelopment.com

Tuesday 8 November 2011

Persistence Entities


  • Persistent Data normally refers to permanent data in an application.
  • The state of these data is made permanent by storing them in a persistent medium like database, files or a disk tape.
  • In JPA terms, these persistent data are referred as ENTITIES.
  • An entity refers to a logical collection of data that can be stored or retrieved as a whole.
For example, in a banking application, Customer and BankAccount can be treated as entities. Customer name, customer address etc can be logically grouped together for representing a Customer entity.
  • some unique characteristics
  1. The property of persistability deals with the storing and retrieving of entity from and to a persistent medium like database.
  2. Identity property is usually used to identity one unique entity among multiple entities (or multiple entity instances) in a database.
  3. All the CRUD operations (Create, Update and Delete) for entity objects will occur within a transactional context and it is one of the major characteristic for an entity object as the real state of an entity depends whether a transaction completes (commits/fails) or not.

No comments:

Post a Comment