什么是POJO

POJO
http://webmouse.spaces.live.com/blog/cns!A5C368849AC2F574!394.entry
在做培训的时候经常被问到:到底什么是POJO。  摘录Martin Flower大师的一段定义吧,但愿能给个圆满的解答。
 
Plain Old Java Object. This acronym is similar to POTS — Plain Old Telephone Service.

“I've come to the conclusion that people forget about regular Java objects because they haven't got a fancy name - so while preparing for a talk Rebecca Parsons, Josh Mackenzie and I gave them one: POJO (Plain Old Java Object). A POJO domain model is easier to put together, quick to build, can run and test outside of an EJB container, and isn't dependent on EJB (maybe that's why EJB vendors don't encourage you to use them.)”
~ Martin Fowler

译文

POJO - 简单老Java对象 . 这个缩写看起来很像POTS - 简单老电话服务。

对于人们经常忘记常规的Java对象,我的总结是它们没有一个好名字 - 因此在准备一次演讲时,Rebecca Parsons, Josh Mackenzie 和我给起了名字: POJO。  一个POJO模型是易组合、快速建立并且运行于EJB容器之外的,不依赖于EJB的一类对象(这或许也是EJB提供商们不鼓励我们使用他们的原因)

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值