@ejbgen:file-generation Annotation

This tag specifies the interface, compound primary key, and value classes that are to be auto-generated during build.

Scope

Class tag on an entity or session bean.

Syntax

@ejbgen:file-generation

[local-class="True/False"]

[local-class-name="NameLocalInterface"]

[local-home="True/False"]

[local-home-name="NameLocalHomeInterface"]

[local-home-package="NameLocalHomeInterfacePackage"]

[local-package="NameLocalInterfacePackage"]

[pk-class="True/False"]

[remote-class="True/False"]

[remote-class-name="NameRemoteInterface"]

[remote-home="True/False"]

[remote-home-name="NameRemoteHomeInterface"]

[remote-home-package="NameRemoteHomeInterfacePackage"]

[remote-package="NameRemoteInterfacePackage"]

[value-class="True/False"]

[value-class-name="NameValueClass"]

Attributes

local-class

Optional. Specifies whether to generate the local interface of the EJB. Valid values are True and False. When left unspecified, it defaults to False. You can set this attribute and local-home together by using the checkbox field Local EJB in the Naming Section of the Property Editor.

local-class-name

Optional. Specifies the name of the local interface. You can set this attribute either directly in Source View or by specifying the Local EJB's Bean class name field in the Naming Section of the Property Editor.

local-home

Optional. Specifies whether to generate the local home interface of the EJB. Valid values are True and False. When left unspecified, it defaults to False. You can set this attribute and local-class together by using the checkbox field Local EJB in the Naming Section of the Property Editor.

local-home-name

Optional. Specifies the name of the local home interface. You can set this attribute either directly in Source View or by specifying the Local EJB's Home class name field in the Naming Section of the Property Editor.

local-home-package

Optional. Specifies the package for the local home interface. When left unspecified, the same package is used as defined in the bean's .ejb file.

local-package

Optional. Specifies the package for the local interface. When left unspecified, the same package is used as defined in the bean's .ejb file.

pk-class

Optional. For an entity bean, specifies whether to generate the primary key class. Valid values are True and False. When left unspecified, it defaults to True. The primary key class name is stored in the prim-key-class attribute of the ejbgen:entity tag.

remote-class

Optional. Specifies whether to generate the remote interface of the EJB. Valid values are True and False. When left unspecified, it defaults to False. You can set this attribute and remote-home together by using the checkbox field Remote EJB in the Naming Section of the Property Editor.

remote-class-name

Optional. Specifies the name of the remote interface. You can set this attribute either directly in Source View or by specifying the Remote EJB's Bean class name field in the Naming Section of the Property Editor.

remote-home

Optional. Specifies whether to generate the remote home interface of the EJB. Valid values are True and False. When left unspecified, it defaults to False. You can set this attribute and remote-class together by using the checkbox field Remote EJB in the Naming Section of the Property Editor.

remote-home-name

Optional. Specifies the name of the remote home interface. You can set this attribute either directly in Source View or by specifying the Remote EJB's Home class name field in the Naming Section of the Property Editor.

remote-home-package

Optional. Specifies the package for the remote home interface. When left unspecified, the same package is used as defined in the bean's .ejb file.

remote-package

Optional. Specifies the package for the remote interface. When left unspecified, the same package is used as defined in the bean's .ejb file.

value-class

Optional. For an entity bean, specifies whether to auto-generate the value class. Valid values are true and false. When left unspecified, it defaults to true. Auto-generated value object classes

value-class-name

Optional. For an entity bean, specifies the name of the value class.

Remarks

The following rules apply to this tag's use:

Related Topics

@ejbgen:jndi-name Annotation

@ejbgen:entity Annotation

@ejbgen:local-method Annotation

@ejbgen:local-home-method Annotation

@ejbgen:remote-method Annotation

@ejbgen:remote-home-method Annotation

How Do I: Create an Enterprise JavaBean?