Home Freemagazine Issue8 Working with Entity bean using JPA

Related Tutorials


 
 

Share on Google+Share on Google+

Working with Entity bean using JPA

Advertisement
An entity defines a table (consisting of rows and columns) in a relational database.

Working with Entity bean using JPA

       

 

  1. Working with Entity bean using JPA
    An entity defines a table (consisting of rows and columns) in a relational database. An entity refers to a logical collection of data that can be stored or retrieved from that entity. 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. Similarly account number, total balance etc may be logically grouped under BankAccount entity.
     
  2. Mapping with EJB3/JPA Annotations
    The EJB 3.0 entity beans are used to model and access relational database tables. It is a completely POJO-based persistence framework with annotations that specify how the object should be stored in the database. The EJB 3.0 container does the mapping from the objects to relational database tables automatically and transparently. Their mappings are defined through JDK 5.0 annotations (an XML descriptor syntax for overriding is defined in the EJB3 specification).

Now, read more information at:

http://www.javajazzup.com/issue8/page7.shtml

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 9, 2010

Related Tutorials

Discuss: Working with Entity bean using JPA  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com