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;
 
 
 import java.util.List;
 

Author(s):
Phillip Verheyden
 
 @Table(name="BLC_SKU_FEE")
 @Cache(usage = ., region="blProducts")
         @DirectCopyTransformMember(templateTokens = ., skipOverlaps=true)
 })
 public class SkuFeeImpl implements SkuFee {
 
     private static final long serialVersionUID = 1L;
     
     @Id
     @GeneratedValue(generator = "SkuFeeId")
     @GenericGenerator(
         name = "SkuFeeId",
         strategy="org.broadleafcommerce.common.persistence.IdOverrideTableGenerator",
         parameters = {
             @Parameter(name="segment_value", value="SkuFeeImpl"),
             @Parameter(name = "entity_name", value = "org.broadleafcommerce.core.order.domain.SkuFeeImpl")
         }
     )
     @Column(name = "SKU_FEE_ID")
     protected Long id;
 
     @Column(name = "NAME")
     protected String name;
     
     @Column(name = "DESCRIPTION")
     protected String description;
     
     @Column(name ="AMOUNT", precision=19, scale=5, nullable=false)
     protected BigDecimal amount;
     
     @Column(name = "TAXABLE")
     protected Boolean taxable = .;
     
     @Lob
     @Type(type = "org.hibernate.type.StringClobType")
     @Column(name = "EXPRESSION", length = . - 1)
     protected String expression;
 
    @Column(name = "FEE_TYPE")
    @AdminPresentation(fieldType=., broadleafEnumeration="org.broadleafcommerce.core.catalog.service.type.SkuFeeType")
    protected String feeType = ..getType();
    
    @ManyToMany(fetch = ., targetEntity = SkuImpl.class)
    @JoinTable(name = "BLC_SKU_FEE_XREF",
            joinColumns = @JoinColumn(name = "SKU_FEE_ID", referencedColumnName = "SKU_FEE_ID", nullable = true),
            inverseJoinColumns = @JoinColumn(name = "SKU_ID", referencedColumnName = "SKU_ID", nullable = true))
    @Cache(usage = ., region="blStandardElements")
    protected List<Skuskus;
    
    @ManyToOne(targetEntity = BroadleafCurrencyImpl.class)
    @JoinColumn(name = "CURRENCY_CODE")
    @AdminPresentation(friendlyName = "TaxDetailImpl_Currency_Code", order=1, group = "FixedPriceFulfillmentOptionImpl_Details", prominent=true)
    protected BroadleafCurrency currency;
    @Override
    public Long getId() {
        return ;
    }
    @Override
    public void setId(Long id) {
        this. = id;
    }
    @Override
    public String getName() {
        return ;
    }
    @Override
    public void setName(String name) {
        this. = name;
    }
    @Override
    public String getDescription() {
        return ;
    }
    @Override
    public void setDescription(String description) {
        this. = description;
    }
    @Override
    public Money getAmount() {
        return BroadleafCurrencyUtils.getMoney(getCurrency());
    }
    @Override
    public void setAmount(Money amount) {
        this. = Money.toAmount(amount);
    }
    @Override
    public Boolean getTaxable() {
        return ;
    }
    @Override
    public void setTaxable(Boolean taxable) {
        this. = taxable;
    }
    @Override
    public String getExpression() {
        return ;
    }
    @Override
    public void setExpression(String expression) {
        this. = expression;
    }
    @Override
    public SkuFeeType getFeeType() {
        return SkuFeeType.getInstance();
    }
    @Override
    public void setFeeType(SkuFeeType feeType) {
        this. = (feeType == null) ? null : feeType.getType();
    }
    
    @Override
    public List<SkugetSkus() {
        return ;
    }
    
    @Override
    public void setSkus(List<Skuskus) {
        this. = skus;
    }
    @Override
    public BroadleafCurrency getCurrency() {
        return ;
    }
    @Override
    public void setCurrency(BroadleafCurrency currency) {
        this. = currency;
    }
New to GrepCode? Check out our FAQ X