Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * BroadleafCommerce Framework
   * %%
   * Copyright (C) 2009 - 2013 Broadleaf Commerce
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * 
  *       http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package org.broadleafcommerce.core.catalog.domain;
 
 
 
 @Table(name="BLC_PRODUCT_UP_SALE")
 @Cache(usage = ., region="blStandardElements")
         @DirectCopyTransformMember(templateTokens = ., skipOverlaps=true),
 })
 public class UpSaleProductImpl implements RelatedProduct {
 
     private static final long serialVersionUID = 1L;
 
     @Id
     @GeneratedValue(generator= "UpSaleProductId")
     @GenericGenerator(
         name="UpSaleProductId",
         strategy="org.broadleafcommerce.common.persistence.IdOverrideTableGenerator",
         parameters = {
             @Parameter(name="segment_value", value="UpSaleProductImpl"),
             @Parameter(name="entity_name", value="org.broadleafcommerce.core.catalog.domain.UpSaleProductImpl")
         }
     )
     @Column(name = "UP_SALE_PRODUCT_ID")
     private Long id;
     
     @Column(name = "PROMOTION_MESSAGE")
     @AdminPresentation(friendlyName = "UpSaleProductImpl_Upsale_Promotion_Message", largeEntry=true)
     private String promotionMessage;
 
     @Column(name = "SEQUENCE", precision = 10, scale = 6)
     @AdminPresentation(visibility = .)
     private BigDecimal sequence;
     
     @ManyToOne(targetEntity = ProductImpl.class)
     @JoinColumn(name = "PRODUCT_ID")
     @Index(name="UPSALE_PRODUCT_INDEX", columnNames={"PRODUCT_ID"})
     private Product product;
     
     @ManyToOne(targetEntity = CategoryImpl.class)
     @JoinColumn(name = "CATEGORY_ID")
     @Index(name="UPSALE_CATEGORY_INDEX", columnNames={"CATEGORY_ID"})
     protected Category category;
 
     @ManyToOne(targetEntity = ProductImpl.class)
     @JoinColumn(name = "RELATED_SALE_PRODUCT_ID", referencedColumnName = "PRODUCT_ID")
     @Index(name="UPSALE_RELATED_INDEX", columnNames={"RELATED_SALE_PRODUCT_ID"})
     private Product relatedSaleProduct = new ProductImpl();
 
     @Override
     public Long getId() {
         return ;
     } 
     
     @Override
     public void setId(Long id) {
         this. = id;
    }
    @Override
    public String getPromotionMessage() {
        return ;
    }
    
    @Override
    public void setPromotionMessage(String promotionMessage) {
        this. = promotionMessage;
    }
    @Override
    public BigDecimal getSequence() {
        return ;
    }
    
    @Override
    public void setSequence(BigDecimal sequence) {
        this. = sequence;
    }
    @Override
    public Product getProduct() {
        return ;
    }
    
    @Override
    public void setProduct(Product product) {
        this. = product;
    }
    
    @Override
    public Category getCategory() {
        return ;
    }
    @Override
    public void setCategory(Category category) {
        this. = category;
    }
    @Override
    public Product getRelatedProduct() {
        return ;
    }   
    @Override
    public void setRelatedProduct(Product relatedSaleProduct) {
        this. = relatedSaleProduct;
    }
New to GrepCode? Check out our FAQ X