Difference between Entity bean and Entity class?

前端 未结 1 1064
逝去的感伤
逝去的感伤 2021-01-21 16:54

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

相关标签:
1条回答
  • 2021-01-21 17:12

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

    0 讨论(0)
提交回复
热议问题