4. Object- Relational Mapping (ORM) deals with
a. matching each attribute of an object to its corresponding row in a database table
b. mapping objects in Object- Oriented Programming to relational data in a database
c. matching stubs of objects on a client to remote objects on a server.
d. mapping methods of client objects to remote stubs on a server.
5. Which pairing of words best represents a correpondence in the context of Java Persistence?
a. Class : Column
b. Table : Instance
c. Column : Entity
d. Object : Class
e. None of these answers.
6. Which of the following annotations applies to an Enterprise JavaBean class?
a. @Stateless
b. @Entity
c. None of these answers
d. @Id
e. @Named
4.
Object-relational mapping (ORM) is a programming technique in which a metadata descriptor is used to connect object code to a relational database. Object code is written in object-oriented programming (OOP) languages.
Answer: b. mapping objects in Object- Oriented Programming to relational data in a database
5.
Entity objects are not identified by contained values. Entity objects are identified by its own unique existance.
Answer: c. Column : Entity
6.
Answer: a. @Stateless
Specifies that a given EJB class is a stateless session bean.
Comments
Leave a comment