GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB

 Print  |  
Question:  What is Entity Bean. What are the various types of Entity Bean

Answer:

Answered by Jey on 2005-05-08 12:47:06:

Entity bean represents the real data which is stored in the persistent storage like Database or file system. For example, There is a table in Database called Credit_card. This table contains credit_card_no,first_name, last_name, ssn as colums and there are 100 rows in the table. Here each row is represented by one instance of the entity bean and it is found by an unique key (primary key) credit_card_no. 
 
There are two types of entity beans. 
1) Container Managed Persistence(CMP)  
2) Bean Managed Presistence(BMP)



May 05, 2005 12:47:06 #1
 Jey   Member Since: Visitor    Total Comments: N/A 

RE: What is Entity Bean. What are the various types of Entity Bean
 
Entity bean represents the real data which is stored in the persistent storage like Database or file system. For example, There is a table in Database called Credit_card. This table contains credit_card_no,first_name, last_name, ssn as colums and there are 100 rows in the table. Here each row is represented by one instance of the entity bean and it is found by an unique key (primary key) credit_card_no. 
 
There are two types of entity beans. 
1) Container Managed Persistence(CMP)  
2) Bean Managed Presistence(BMP)
     

 

Back To Question