* @param articleType
* @param orderLineMain
*/
private void setOrderLineRefs(ArticleType articleType,
OrderLine orderLineMain) {
ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
.getBean("articleTypeManager");
articleTypeManager
.lazyLoad(
articleType,
new LazyLoadArticleTypeEnum[] { LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE });
Set<ArticleTypeArticleType> articleRefs = articleType
.getArticleTypeArticleTypes();
OrderLine orderLine;
Set<OrderLineAttribute> orderLineAttributes;
Set<OrderLine> orderLineRefs = new HashSet<OrderLine>();
if (articleRefs != null) {
for (ArticleTypeArticleType articleRef : articleRefs) {
orderLine = OrderLine
.getInstance(
(Order) presentationModelPackable
.getBufferedValue(ICostableModel.PROPERTY_ORDER),
articleRef.getArticleTypeRef(),
orderLineMain,
(Deviation) presentationModelPackable
.getBufferedValue(ICostableModel.PROPERTY_DEVIATION));
ArticleType articleTypeRef = articleRef.getArticleTypeRef();
articleTypeManager
.lazyLoad(
articleTypeRef,
new LazyLoadArticleTypeEnum[] { LazyLoadArticleTypeEnum.ATTRIBUTE });
Set<ArticleTypeAttribute> attributes = articleTypeRef
.getArticleTypeAttributes();