Hibernate中反射优势

来源:互联网 发布:java发送邮件的代码 编辑:程序博客网 时间:2024/04/30 15:59

原文地址:https://developer.jboss.org/wiki/HibernateFAQ-PerformanceQA

Okay, so what are the advantages of reflection then?

A quicker compile-build-test cycle. The advantage of this should not be understated. The philosophy of Hibernate is this: let the developer spend as little time as possible implementing persistence for the 95% of the application which is used 5% of the time. Then, later, if there are performance issues with the remaining 5%, there will be plenty of time left for hand-coding JDBC calls to improve performance of particular bottlenecks. (Most of the time Hibernate very closely approaches the performance of hand-coded JDBC anyway.)


0 0