Difference between Entity bean and Entity class?

时光毁灭记忆、已成空白 提交于 2019-12-02 07:25:50

问题


What are the differences between entity beans which are in the EJB 2.0 specification and entity classes which in the 3.0 specification?


回答1:


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).

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..



来源:https://stackoverflow.com/questions/37524680/difference-between-entity-bean-and-entity-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!