NC57聚合VO写法

package nc.vo.ic.hb;

import java.util.Arrays;

import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.trade.pub.HYBillVO;

/**
 * 
 * 聚合VO
 * 创建日期:2013-04-18 16:34:33
 * @author Administrator
 * @version NCPrj 1.0
 */
@SuppressWarnings("serial")
@nc.vo.annotation.AggVoInfo(parentVO = "nc.vo.ic.hb.主表VO")
public class  AggMatorderHVO extends HYBillVO {

	public CircularlyAccessibleValueObject[] getChildrenVO() {
		return (子表VO[]) super.getChildrenVO();
	}

	public CircularlyAccessibleValueObject getParentVO() {
		return (主表VO) super.getParentVO();
	}

	public void setChildrenVO(CircularlyAccessibleValueObject[] children) {
		if (children == null || children.length == 0) {
			super.setChildrenVO(null);
		} else {
			super.setChildrenVO((CircularlyAccessibleValueObject[]) Arrays.asList(children).toArray(new 子表VO[0]));
		}
	}

	public void setParentVO(CircularlyAccessibleValueObject parent) {
		super.setParentVO((主表VO) parent);
	}
	
}

你可能感兴趣的:(ERP开发)