use of org.broadleafcommerce.common.persistence.PostLoaderDao in project BroadleafCommerce by BroadleafCommerce.
the class CandidateOrderOfferImpl method getOffer.
@Override
public Offer getOffer() {
if (deproxiedOffer == null) {
PostLoaderDao postLoaderDao = DefaultPostLoaderDao.getPostLoaderDao();
if (postLoaderDao != null && offer.getId() != null) {
Long id = offer.getId();
deproxiedOffer = postLoaderDao.find(OfferImpl.class, id);
} else if (offer instanceof HibernateProxy) {
deproxiedOffer = HibernateUtils.deproxy(offer);
} else {
deproxiedOffer = offer;
}
}
return deproxiedOffer;
}
use of org.broadleafcommerce.common.persistence.PostLoaderDao in project BroadleafCommerce by BroadleafCommerce.
the class OrderAdjustmentImpl method getOffer.
@Override
public Offer getOffer() {
if (deproxiedOffer == null) {
PostLoaderDao postLoaderDao = DefaultPostLoaderDao.getPostLoaderDao();
if (postLoaderDao != null && offer.getId() != null) {
Long id = offer.getId();
deproxiedOffer = postLoaderDao.find(OfferImpl.class, id);
} else if (offer instanceof HibernateProxy) {
deproxiedOffer = HibernateUtils.deproxy(offer);
} else {
deproxiedOffer = offer;
}
}
return deproxiedOffer;
}
use of org.broadleafcommerce.common.persistence.PostLoaderDao in project BroadleafCommerce by BroadleafCommerce.
the class CandidateFulfillmentGroupOfferImpl method getOffer.
@Override
public Offer getOffer() {
if (deproxiedOffer == null) {
PostLoaderDao postLoaderDao = DefaultPostLoaderDao.getPostLoaderDao();
if (postLoaderDao != null && offer.getId() != null) {
Long id = offer.getId();
deproxiedOffer = postLoaderDao.find(OfferImpl.class, id);
} else if (offer instanceof HibernateProxy) {
deproxiedOffer = HibernateUtils.deproxy(offer);
} else {
deproxiedOffer = offer;
}
}
return deproxiedOffer;
}
use of org.broadleafcommerce.common.persistence.PostLoaderDao in project BroadleafCommerce by BroadleafCommerce.
the class OrderItemQualifierImpl method getOffer.
@Override
public Offer getOffer() {
if (deproxiedOffer == null) {
PostLoaderDao postLoaderDao = DefaultPostLoaderDao.getPostLoaderDao();
if (postLoaderDao != null && offer.getId() != null) {
Long id = offer.getId();
deproxiedOffer = postLoaderDao.find(OfferImpl.class, id);
} else if (offer instanceof HibernateProxy) {
deproxiedOffer = HibernateUtils.deproxy(offer);
} else {
deproxiedOffer = offer;
}
}
return deproxiedOffer;
}
use of org.broadleafcommerce.common.persistence.PostLoaderDao in project BroadleafCommerce by BroadleafCommerce.
the class BundleOrderItemImpl method getSku.
@Override
public Sku getSku() {
if (deproxiedSku == null) {
PostLoaderDao postLoaderDao = DefaultPostLoaderDao.getPostLoaderDao();
if (postLoaderDao != null && sku.getId() != null) {
Long id = sku.getId();
deproxiedSku = postLoaderDao.find(SkuImpl.class, id);
} else if (sku instanceof HibernateProxy) {
deproxiedSku = HibernateUtils.deproxy(sku);
} else {
deproxiedSku = sku;
}
}
return deproxiedSku;
}
Aggregations