java - mybatis可以级联保存,更新吗?
巴扎黑
巴扎黑 2017-04-17 13:59:07
0
4
876

级联查询没问题文档里很清楚,保存更新貌似没有,这个自己要怎么实现阿?

巴扎黑
巴扎黑

reply all(4)
迷茫

The biggest advantage of mybatis is its flexibility. Currently, there is no cascading save and update. More complex SQL statements need to be written by yourself. If it is a larger project and the database relationship is more complex, Hibernate is recommended

Ty80

Mybatis only executes the sql you scheduled in mapper. Whether it can be cascaded depends on your sql. Instead of directly operating objects like hibernate.

大家讲道理

It has nothing to do with mybatis. Mybatis is just an ORM, a framework for executing configuration files.

阿神

This has nothing to do with mybatis. Mybatis only provides mapping from entity classes to SQL tables. As for whether cascade operations can be performed, it depends on how the tables in your database are designed. . . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template