on 02-21-2006 9:18 AM
Hi all,
I Migrating Petstore demo 1.3.2 application to SAPWAS.
I am facing some problem with EJB Quries. Where can I specify these EJB Quries i.e SQL Quries, in persistent.xml file and give me the exact tag names to specify the quries.
Thanks,
Regards
Madhuri.
Hi Madhuri,
<abstract-schema-name>UserAccount</abstract-schema-name>
...
<query>
<query-method>
<method-name>findByEmail</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
[!CDATA[
SELECT DISTINCT object(ua)
FROM UserAccount ua
WHERE ua.email = ?1]]
</ejb-ql>
</query>
In EJB QL the <abstract-schema-name> tag defines a value analogous to a table name in standard
SQL. In the code above, the abstract schema name is UserAccount, and it maps to the bean named
UserAccountBean.
in EJB QL Abstract Schema Name have importance . u have to give this here ..
Regards
Kishor Gopinathan
Message was edited by: Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.