Java Reference
In-Depth Information
<method-name>findByCatalogId</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM CatalogBean AS a WHERE
a.catalogId = ?1
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByJournal</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM CatalogBean AS a WHERE
a.journal= ?1
</ejb-ql>
<collection-type>java.util.Collection</collection-type>
</query>
</entity>
</enterprise-beans>
</ejb-jar>
Copy the modified deployment descriptor to the ejb-jar-modified.xml ile
in JDeveloper.
The XSLT stylesheet
Next, convert the modified ejb-jar.xml to an EJB 3.0 entity bean with an XSLT
stylesheet. The EJB 3.0 entity bean class is generated using the built-in XSLT
transformation tool in JDeveloper. The XSLT stylesheet entity-bean.xsl used to
generate the EJB 3.0 entity is listed next:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1" omit-xml-declaration="yes"
method="text" />
<xsl:template match="/">
 
Search WWH ::




Custom Search