在测试代码中double cds view 时,一定要double 生产代码中的cds view, 而不能由cds view 下面的association cds view来构成。

例如:

define view I_FunctionalLocationLabel
  as select from I_FunctionalLocation
  association [0..1] to I_FlocLabelingState     
  association [0..1] to P_FlocUserlabel      

association [0..1] to P_FlocPrimaryLabel association [0..1] to I_FuncLocationLabelSearch

当生产代码查询  I_FunctionalLocationLabel 时,要double  I_FunctionalLocationLabel , 不能由 ,I_FunctionalLocation, I_FlocLabelingState代替。

对I_FunctionalLocationLabel 使用association, 可以直接使用 P_FlocPrimaryLabel 等来构造数据,并且可以用于P_FlocPrimaryLabel等 查询。

double之后,使用double cds view的紧邻层来填充数据。

猜你喜欢

转载自www.cnblogs.com/liyafei/p/11480283.html