Which of the following statement are incorrect when contrasting the use of entity beans and JDBC for database operations?
a. When using JDBC, you must explicitly handle the database transaction and the database connection pooling.
b. entity beans represent real data in the database
c. the container-managed entity bean automatically retrieves the data from the persistent storage (database)
d. the bean-managed entity bean functionality replaces the JDBC API
e. the bean-managed entity bean has to obtain a database connection, retrieve the row/column values and assign them to the objects in the ejbload()我看选项都是正确的?? 
求助高手
谢谢

解决方案 »

  1.   

    下面哪句话是错误的?
    a. 用jdbc的话,你必须自己处理数据库传输和数据库连接池
    b. entity beans代表了数据库里的真实数据
    c. 容器管理的entity bean自动从(数据库)持久层获取数据
    d. bean管理的entity bean在功能上代替了 JDBC 的 API
    e. bean管理的entity bean 必须获取数据库连接,得到行/列值后通过ejbload()方法把它们赋值给对象
      

  2.   

    别去研究 Entity Bean 了,在 EJB 3 中已经将 Entity Bean 去掉了,仅作为向下兼容性而保留着。Entity Bean 现在使用 JPA 来取代了。