First review hibernate

xiaoxiao2021-03-06  65

What is the ORM layer under the business logic layer, some people recommend Hibernate, and some people have a negative attitude, so I decided to understand first. The following is some experience I have read a few days of documentation, it may be a bit pessimistic.

1, how much can Hibernate use? What is much, it's hard to say, I think it should be a database table, the business logic is more complicated (the table is complex), and the performance is relatively high. I don't know in other industries, the telecommunications industry software should be this. As far as I understand, such database access (especially frequent trading) usually needs to be solved with the process of prosperity, saying that you write Java's JDBC, and don't use Hibernate to solve it. So there is definitely a scope of scope, I hope that Hibernate has been skilled, and people who have some projects will help solve

2 Hibernate performance?

Many people say that hibernate is good, nothing more than some of its cache features, do not discuss whether there is such best practices (I hope that some people can make Best Practices, or Pattern), not from cache itself, not there Just good, otherwise, there will be no distributed cache. Just like the elders become a heaven, I'm here, I think that is good to you, in fact, you have said that I am more troublesome. Hibernate provides all aspects of properties in order to solve the performance of the party, but these are not a good thing.

3 DBA I use hibernate in the project? I am not DBA, even if I write the SQL statement, I often ask DBA when I write DAO. DBA is also very ubiz to find the familiar SQL (not HQL), I think this is DBA. One reason for Hibernate. Another reason is that the database is born is a perfect system. No matter how performance is still scalable (I want no one against my point of view), the DBA is convinced that it is best to give the database to the database. So they don't agree with everything depend on hibernate. This point of view also wants to understand the DBA of Hibernate.

The history of EJB has made many people to see Hibernate with a suspicion. When the EJB succeeded, Hibernate is also walking like this, so I don't trust the evaluation, just hope I can start from practice, let Hibernate can Reduce developers' workload, and reduce the risk of using it

转载请注明原文地址:https://www.9cbs.com/read-89802.html

New Post(0)