简体   繁体   English

顶部链接是否反映了订单中的更改

[英]Does toplink reflect changes in the order

Does top link reflect the changes if the ordering of the elements have changed? 如果元素的顺序已更改,则顶部链接是否反映出更改? I have the below mapping : 我有以下映射:

ManyToManyMapping dummyMapping = new ManyToManyMapping();
dummyMapping.setAttributeName("dummy");
dummyMapping.setReferenceClass(Dummy.class);
dummyMapping.useBasicIndirection();
//aggregationProvidersMapping.useCollectionClass(java.util.ArrayList.class);
dummyMapping.setRelationTableName("DUMMY");
dummyMapping.addSourceRelationKeyFieldName("dummy1.ID", "dummy2.ID");
dummyMapping.addTargetRelationKeyFieldName("dummy1.ORGID", "dummy2.id");
descriptor.addMapping(dummyMapping);
  1. What is the default collection class used if I don't specify any class via the "useCollectionClass"? 如果我没有通过“ useCollectionClass”指定任何类,则使用的默认集合类是什么?

  2. "dummy" is using a ArrayList and hence the ordering of the elements is maintained. “虚拟”正在使用ArrayList,因此可以保持元素的顺序。 If the ordering of the elements within the "dummy" attribute has changed, [no additions or deletions], does toplink reflect these changes to the DB ? 如果“虚拟”属性中元素的顺序已更改,[无添加或删除],则toplink是否将这些更改反映到数据库?

For a ManyToManyMapping ,there is no way in which the order can be stored. 对于ManyToManyMapping,无法存储订单。 I resolved this solution by changing to OneToManyMapping. 我通过更改为OneToManyMapping解决了该解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EHCache是​​否需要put()才能使实例更改反映(XA)? - Does EHCache require put() in order for changes to instance to reflect (XA)? JTabbedPane中的选项卡不反映按钮按下时的更改 - Tab in JTabbedPane does not reflect changes on button press Android 工作室不反映我 xml 的变化 - Android Studio does not reflect my xml changes 为什么浏览器不反映JSP页面或Angular Controller中所做的更改? - Why Browser does not reflect changes made in JSP page or Angular Controller? Selenium驱动程序无法反映click()之后的页面更改 - Selenium driver does not reflect page changes after click() Ajax操作后,JSF 2属性无法反映更改 - JSF 2 Property does not reflect the changes after an ajax action GWT Compile部署后,应用程序不会反映服务器端的更改 - After GWT Compile deployed applicatiuon does not reflect changes on server side 在JNI中修改的Mat不会反映Java中的更改 - Mat modified in JNI does not reflect changes back in Java 添加新节点时,链表的浅层副本不反映更改 - shallow copy of linkedlist does not reflect changes when adding new node Hibernate executeUpdate成功,但列表操作未反映更改 - Hibernate executeUpdate is successful but list operation does not reflect changes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM