Ibatis and Hibernate have their own

zhaozj2021-02-12  126

Ibatis is a powerful, very useful SQL Map tool, different from ORM tools (such as hibernate), which is mapped to Java objects, and for ORM tools, its SQL statement is generated based on mapping definitions.

Ibatis and Hibernate have their own use, if you start a new project, there is a full control of the domain object model and database design, Hibernate is a good ORM tool.

But if you want to access a third-party database, or use an existing system's database, or a terrible database, the ORM tool is difficult to cope with the complexity of this. In this case, IBATI is very useful.

Also, if your development group is familiar with object-oriented development mode and familiar with Hibernate, you can use Hibernate. And if your development team is only familiar with SQL, and it is not familiar with Hibernate, it is recommended that you use iBATIS, after all, Ibatis is much simpler. As long as you are familiar with SQL, use XML, you can use ibatis, and use Hibernate, you need to be familiar with Hibernate unique query language HQL, although it is relatively simple.

But IBATI has also had a N 1 query problem that may seriously affect performance, but CLINTON promises to resolve it before IBATIS2.0 is officially published.

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

New Post(0)