|
The following is a list of the EJB-relevant XDoclet tags defined within XDoclet and the Resin extension:
@ejb.bean—Defines the new EJB to be created. Its attributes are:
name—Indicates the bean name as defined in the deployment descriptor file.
view-type—Specifies the scope of the new bean. The values are local, remote, or both.
reentrant—Indicates whether the entity bean is reentrant (True or False).
type—Indicates CMP (for container-managed persistence) or BMP (for bean-managed persistence).
schema—Specifies the value for the abstract schema name used in EJB-QL as defined in the deployment descriptor.
primkey-field—Specifies the primary key field name as defined in the deployment descriptor.
@ejb.pk—Specifies the entity primary key definition as defined in the deployment descriptor. It has one attribute:
class—The primary key classname.
@ejb.home—Starts the definition of the home interface. Its attributes are:
generate—Determines which home interfaces to generate: remote, local, or both.
local-class—Specifies the classname for the local home class.
@ejb.interface—Starts the definition of the interface. Its attributes are:
generate—Determines which interface to generate: remote, local, or both.
local-class—Specifies the classname for the local interface.
@ejb.finder—Creates a finger method. Its attributes are:
result-type-mapping-specifies an optional result type mapping.
query—Contains the query for the finder method using EJB-QL.
@ejb.select—Creates a select method. Its attributes are:
signature—Indicates the select method signature with the return type and parameters.
query—Contains the query for the select method using EJB-QL.
@resin-ejb:entity-bean—A Resin-specific tag for the use of the <sql-table> element. It has one attribute:
sql-table—Specifies the physical SQL table name.
@ejb.interface-method—Include this attribute with the method in the interface.
@ejb.persistence—specified persistence information for a bean. It has one attribute:
Table-name-the table to be mapped.
@ejb.pk-field—Include this attribute as a primary key.
@ejb.relation—Defines a relation. Its attributes are:
name—Indicates the relation name; same if bidirectional.
role-name—Specifies the name of the relationship.
@ejb.home-method—Include this with a home method. It has one attribute:
view-type—Indicates local or remote.
@resin-ejb:cmp-field—Defines a Resin-specific persistent field. It has one attribute:
sql-column—Specifies the name of the SQL column.
@resin-ejb:relation—A Resin-specific extension to @ejb.relation. It has these attributes:
sql-table—Specifies the name of the table for n-m relations.
sql-column—Contains the actual SQL column name.
|