Skip to content

请问Entity可以使用insertOrUpdate,bulkInsert, bulkUpdate, bulkInsertOrUpdate方法吗 #610

@PolybiusJ

Description

@PolybiusJ

想根据使用mybatis-plus的习惯封装一个供Entity使用的BaseDao,像insert, update等方法倒是好说,有现成的可以用,到了上面那些高级点的方法,看了下目前好像仅支持Table类型,想尝试仿照update方法自行实现一个扩展方法,结果又发现像entity.findInsertColumns()和entity.findUpdateColumns()这些关键方法是private的,如果每个实体都需要传入一系列 set(column, value) 来调用的话,好像又会产生不少样板代码。想问下大佬可以考虑官方支持下Entity的这些方法吗,或者说是有没有办法提供一个public的由table column获得与其绑定的实体的对应的属性域及属性值这样的方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions