请问用户编辑页面里面的替代用户功能是如何实现的 现在需要实现一个类似的功能

说一下具体需求?

在新建页面 添加一个列表 对列表添加数据 并使添加的每一条数据与主数据关联 在编辑页面点击取消之后 添加的几条数据也随之取消

如果你是有一对多的数据库表关系,多对应的表数据要在父表编辑页面一起commit,可以用@COMPOSITION 注解。

CUBA platform supports two types of relationship between entities: association and composition. They are called ASSOCIATION and COMPOSITION respectively in the CUBA Studio interface. Association is a relationship between the objects that can exist separately from each other. Composition, on the other hand, is used for “master-detail” relations, when the detail instances can exist only as part of the master. A case of an airport and its terminals may be considered an example of composition: a terminal that does not belong to any airport does not make sense.