⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employeeaddressbean.java

📁 XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用程序
💻 JAVA
字号:
/*
 * $Id: EmployeeAddressBean.java,v 1.3 2003/03/04 04:48:48 topping Exp $
 */
package test.ejb.cmr;

import javax.ejb.EntityBean;
import javax.ejb.CreateException;

import test.ejb.cmr.EmployeeAddressValue;

/**
 * @ejb.bean
 *   name="EmployeeAddress"
 *   type="CMP"
 *   cmp-version="2.x"
 *   primkey-field="id"
 *   view-type="local"
 *
 * @ejb.persistence
 *   table-name="address"
 * @ejb.value-object
 *   name="EmployeeAddress"
 *   match="*"
 *
 * @author mvsbrito
 * @version $Revision: 1.3 $ $Date: 2003/03/04 04:48:48 $
 */
public abstract class EmployeeAddressBean implements EntityBean
{
    /**
     * @ejb.interface-method
     *   view-type="local"
     * @ejb.persistence
     *   column-name="addr_id"
     */
    public abstract Integer getId();
    public abstract void setId(Integer id);

    /**
     * @ejb.interface-method
     *   view-type="local"
     * @ejb.persistence
     *   column-name="addr_description"
     */
    public abstract String getDescription();

    /**
     * @ejb.interface-method
     *   view-type="local"
     */
    public abstract void setDescription(String description);

    /**
     * @ejb.interface-method
     *   view-type="local"
     */
    public abstract EmployeeAddressValue getEmployeeAddressValue();

    /**
     * @ejb.interface-method
     *   view-type="local"
     */
    public abstract void setEmployeeAddressValue(EmployeeAddressValue value);

    /**
     * @ejb:create-method
     */
    public Integer ejbCreate(EmployeeAddressValue eav) throws CreateException {
        setId(eav.getId());
        return eav.getId();
    }
}

⌨️ 快捷键说明

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