Subversion Repository Public Repository

litesoft

Diff Revisions 150 vs 151 for /trunk/Java/core/Server/tests/org/litesoft/or/DBImmortalPO.java

Diff revisions: vs.
  @@ -1,6 +1,8 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.or;
3 3
4 + import java.util.*;
5 +
4 6 import org.litesoft.bo.attributes.*;
5 7 import org.litesoft.core.util.*;
6 8 import org.litesoft.orsup.base.*;
  @@ -10,8 +12,6 @@
10 12 import org.litesoft.orsup.selection.*;
11 13 import org.litesoft.orsup.transact.*;
12 14
13 - import java.util.*;
14 -
15 15 public abstract class DBImmortalPO extends PersistentObjectImpl<DBImmortal>
16 16 {
17 17 private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl();
  @@ -42,8 +42,7 @@
42 42 return mRecordVersion.getRecordVersion();
43 43 }
44 44
45 - private static class AttributeAccessor_RecordVersion
46 - extends AttributeAccessorSCD_RecordVersion<DBImmortal>
45 + private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<DBImmortal>
47 46 {
48 47 public AttributeAccessor_RecordVersion()
49 48 {
  @@ -71,8 +70,7 @@
71 70 mID = pID;
72 71 }
73 72
74 - private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBImmortal>
75 - implements NonImportableFeature
73 + private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBImmortal> implements NonImportableFeature
76 74 {
77 75 public AttributeAccessor_ID()
78 76 {
  @@ -123,11 +121,9 @@
123 121 }
124 122 }
125 123
126 - public static final AttributeAccessorSCDtoOneRegular<DBImmortal, DBImmortal> CD_Parent =
127 - new AttributeAccessor_Parent();
124 + public static final AttributeAccessorSCDtoOneRegular<DBImmortal, DBImmortal> CD_Parent = new AttributeAccessor_Parent();
128 125
129 - protected LazyLoadToOneRegular<DBImmortal, DBImmortal> mParent = new LazyLoadToOneRegular<DBImmortal, DBImmortal>(
130 - (DBImmortal) this, CD_Parent ); // Note: DBImmortal is the related TO object
126 + protected LazyLoadToOneRegular<DBImmortal, DBImmortal> mParent = new LazyLoadToOneRegular<DBImmortal, DBImmortal>( (DBImmortal) this, CD_Parent ); // Note: DBImmortal is the related TO object
131 127
132 128 public DBImmortal getParent()
133 129 {
  @@ -143,8 +139,7 @@
143 139 {
144 140 public AttributeAccessor_Parent()
145 141 {
146 - super( "Parent", "parent_id", DBImmortal.class, "ID", "DBImmortalSetForParent", false, false, Mutability.RW
147 - );
142 + super( "Parent", "parent_id", DBImmortal.class, "ID", "DBImmortalSetForParent", false, false, Mutability.RW );
148 143 }
149 144
150 145 public LazyLoadToOneRegular<DBImmortal, DBImmortal> getValueHolder( DBImmortal pPO )
  @@ -173,12 +168,9 @@
173 168 }
174 169 }
175 170
176 - public static final AttributeAccessorSCDtoManyRegular<DBImmortal, DBImmortal> CD_DBImmortalSetForParent =
177 - new AttributeAccessor_DBImmortalSetForParent();
171 + public static final AttributeAccessorSCDtoManyRegular<DBImmortal, DBImmortal> CD_DBImmortalSetForParent = new AttributeAccessor_DBImmortalSetForParent();
178 172
179 - protected LazyLoadToManyRegular<DBImmortal, DBImmortal> mDBImmortalSetForParent =
180 - new LazyLoadToManyRegular<DBImmortal, DBImmortal>( (DBImmortal) this,
181 - CD_DBImmortalSetForParent ); // Note: DBImmortal is the related TO object
173 + protected LazyLoadToManyRegular<DBImmortal, DBImmortal> mDBImmortalSetForParent = new LazyLoadToManyRegular<DBImmortal, DBImmortal>( (DBImmortal) this, CD_DBImmortalSetForParent ); // Note: DBImmortal is the related TO object
182 174
183 175 public List<DBImmortal> getDBImmortalSetForParent()
184 176 {
  @@ -200,13 +192,11 @@
200 192 processLazyLoadMutationRemove( mDBImmortalSetForParent, pDBImmortalSetForParent );
201 193 }
202 194
203 - private static class AttributeAccessor_DBImmortalSetForParent
204 - extends AttributeAccessorSCDtoManyRegular<DBImmortal, DBImmortal>
195 + private static class AttributeAccessor_DBImmortalSetForParent extends AttributeAccessorSCDtoManyRegular<DBImmortal, DBImmortal>
205 196 {
206 197 public AttributeAccessor_DBImmortalSetForParent()
207 198 {
208 - super( "DBImmortalSetForParent", "ID", DBImmortal.class, "Parent", "Name", Mutability.RW, false,
209 - true );
199 + super( "DBImmortalSetForParent", "ID", DBImmortal.class, "Parent", "Name", Mutability.RW, false, true );
210 200 }
211 201
212 202 public LazyLoadToManyRegular<DBImmortal, DBImmortal> getValueHolder( DBImmortal pPO )