POJO产生的原因及目的?
使用POJO产生了什么样的好处?怎么觉得从模型里把方法剥夺了,看起来那么奇怪呢?
另外,剥夺出来的service和领域中真正的service放在一个包里?怎么觉得这么怪..
Easier development—There is less cognitive load because rather than being forced to think about everything—business logic, persistence, transactions etc.—at once you can instead focus on one thing at a time. You can first design and implement the business logic and then, once that is working, you can deal with persistence and transactions.
Faster development—You can develop and test your business logic outside of the application server and without a database. You do not have to package your code and deploy it in the application. Also, you do not have to keep the database schema constantly in sync with the object model or spend time waiting for slow-running database tests to finish. Tests can run in a few seconds and development can happen at the speed of thought—or at least as fast as you can type!
Improved portability—You are not tied to a particular implementation technology. The cost of switching to the next generation of Java technology is minimized because you have to rewrite only a small amount of code, if any.
英文资料还是比中文的齐全哎?
java对象宛如一个人,在10岁的时候是学生,所以他又“人”“学生”两个名字,25岁上班了,就多了“职员”这个名字,谁知道未来还会有哪些变革和改变,他还会增加哪些称号。。。