Subversion Repository Public Repository

litesoft

Diff Revisions 6 vs 17 for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/objects/factories/a6plus/A6plusPropertyMetaDataDefinitionAccessor.java

Diff revisions: vs.
  @@ -1,5 +1,7 @@
1 1 package org.litesoft.aokeyhole.objects.factories.a6plus;
2 2
3 + import java.util.*;
4 +
3 5 import org.litesoft.aokeyhole.objects.*;
4 6 import org.litesoft.aokeyhole.objects.attributes.*;
5 7 import org.litesoft.aokeyhole.objects.factories.*;
  @@ -7,6 +9,9 @@
7 9
8 10 public class A6plusPropertyMetaDataDefinitionAccessor extends PropertyMetaDataDefinitionAccessorImpl implements A6plusTypes
9 11 {
12 + private static Set<String> NON_ABSTRACT_REGULAR_POS = createSet( TYPE_PO, TYPE_COMMON_PAIRED_PO, TYPE_PAIRED_PO, TYPE_BRIDGE, TYPE_VARIABLE_TO_ONE_BRIDGE );
13 + private static Set<String> ALL_REGULAR_POS = createSet( NON_ABSTRACT_REGULAR_POS, TYPE_ABSTRACT_PO );
14 +
10 15 public A6plusPropertyMetaDataDefinitionAccessor()
11 16 {
12 17 super( "A6plus", //
  @@ -543,35 +548,41 @@
543 548 new ASet( PMD_Changeable.INSTANCE, //
544 549 PMD_Required.INSTANCE, //
545 550 PMD_DependsOnAttributes.INSTANCE ) ), //
546 - new PairedToOneSet(), //
547 - new CommonPairedToOneSet( PMD_UniqueGroup.INSTANCE, //
551 + new PairedToOneSet( TYPE_COMMON_PAIRED_PO ), //
552 + new CommonPairedToOneSet( TYPE_ABSTRACT_PO, //
553 + PMD_UniqueGroup.INSTANCE, //
548 554 PMD_ColumnName.INSTANCE ), //
549 555 new VariableBridgeToOneLeftSet( PMD_Changeable.INSTANCE, //
550 556 PMD_UniqueGroup.INSTANCE, //
551 557 PMD_ColumnName.INSTANCE ), //
552 - new BridgeToOneLeftSet( PMD_Changeable.INSTANCE, //
558 + new BridgeToOneLeftSet( NON_ABSTRACT_REGULAR_POS, //
559 + PMD_Changeable.INSTANCE, //
553 560 PMD_UniqueGroup.INSTANCE, //
554 561 PMD_ColumnName.INSTANCE ), //
555 - new BridgeToOneRightSet( PMD_Changeable.INSTANCE, //
562 + new BridgeToOneRightSet( NON_ABSTRACT_REGULAR_POS, //
563 + PMD_Changeable.INSTANCE, //
556 564 PMD_UniqueGroup.INSTANCE, //
557 565 PMD_ColumnName.INSTANCE ), //
558 - new UiCRUDpSet( A_ToOne.TYPE, //
559 - new ASet( PMD_Changeable.INSTANCE, //
560 - PMD_Required.INSTANCE, //
561 - PMD_CascadeDeleteThem.INSTANCE, //
562 - PMD_UniqueGroup.INSTANCE, //
563 - PMD_ColumnName.INSTANCE ), //
564 - new ASet( PMD_Changeable.INSTANCE, //
565 - PMD_Required.INSTANCE, //
566 - PMD_DependsOnAttributes.INSTANCE ) ), //
566 + new ToOneSet( new ASet( NON_ABSTRACT_REGULAR_POS, //
567 + PMD_Changeable.INSTANCE, //
568 + PMD_Required.INSTANCE, //
569 + PMD_CascadeDeleteThem.INSTANCE, //
570 + PMD_UniqueGroup.INSTANCE, //
571 + PMD_ColumnName.INSTANCE ), //
572 + new ASet( ALL_REGULAR_POS, //
573 + PMD_Changeable.INSTANCE, //
574 + PMD_Required.INSTANCE, //
575 + PMD_DependsOnAttributes.INSTANCE ) ), //
567 576 new VariableToOneSet( PMD_Changeable.INSTANCE, //
568 577 PMD_Required.INSTANCE, //
569 578 PMD_CascadeDeleteThem.INSTANCE, //
570 579 PMD_UniqueGroup.INSTANCE, //
571 580 PMD_ColumnName.INSTANCE ), //
572 - new ToManySet( new ASet( PMD_Changeable.INSTANCE, //
581 + new ToManySet( new ASet( NON_ABSTRACT_REGULAR_POS, //
582 + PMD_Changeable.INSTANCE, //
573 583 PMD_Required.INSTANCE ), //
574 - new ASet( PMD_Changeable.INSTANCE, //
584 + new ASet( ALL_REGULAR_POS, //
585 + PMD_Changeable.INSTANCE, //
575 586 PMD_Required.INSTANCE, //
576 587 PMD_DependsOnAttributes.INSTANCE ) ) );
577 588 }