Entity bean和Entity类之间的区别? [英] Difference between Entity bean and Entity class?
问题描述
EJB 2.0
规范中实体bean
之间的区别是什么?实体类
在 3.0
规范中?
What are the differences between entity beans
which are in the EJB 2.0
specification and entity classes
which in the 3.0
specification?
推荐答案
在EJB 2中,实体是一个bean,意味着它必须存在于容器中并且需要进行管理(类似于其他bean,比如有状态,无状态,消息驱动的bean)。
In EJB 2, entity was a bean meaning that it had to live in a container and need to be managed (similar to other beans, say stateful, stateless, message driven beans).
然而在EBJ 3.x中,entity是一个POJO类 - 这意味着它也可以在容器之外生存..普通的java应用程序可以将实体用作任何支持它的提供者的ORM层..
However in EBJ 3.x, entity is a POJO class - meaning that it can live outside container also.. plain java application can make use of entities as ORM layer with any providers supporting it..
这篇关于Entity bean和Entity类之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!