internetassociatedoption.java

来自「Sample Hibernate Shopping Cart Applicati」· Java 代码 · 共 50 行

JAVA
50
字号
/*
 * @(#)InternetProduct.java $LastChangedRevision$ $LastChangedDate$
 * Created on Apr 5, 2005
 *
 * Copyright (c) 2005, Daniel Watrous
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or 
 * without modification, are governed by the license found in
 * the following places:
 * license.txt included with this distribution, or
 * http://www.simplecart.org/license.html
 * 
 */
package org.simplecart.shopcart.catalog;

/**
 * @version     $LastChangedRevision$ $LastChangedDate$
 * @author      Daniel Watrous
 */

public class InternetAssociatedOption extends InternetAssociation {
    
    private Product product;
    private ProductOption productOption;
    
    /**
     * No-arg constructor for JavaBean tools
     */
    InternetAssociatedOption() {}
    
    /**
     * Full constructor;
     */
    public InternetAssociatedOption(Product product, ProductOption productOption) {
        this.product = product;
        this.productOption = productOption;
    }
    
    // JavaBean style accessors/mutators
    public ProductOption getProductOption() {
        return productOption;
    }

    public Product getProduct() {
        return product;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?