hi
i have a problem in ejbFinder method
i want to find data on the basis of partyname
when the ejb-jar.xml file is created by the server then the field name is changed
means
ejb-jar.xml field shows partyName
where as in the data base its name is Party_Name so because of this i couldnt get data from the EJB-QL because it couldnt map the field with the database so
how can i solve it
and ejb-jar.xml file is created by the container automatically as i am using CMP Bean
so tell me the solution
thank you very much
regards
vikassheelgupta@rediffmail.com
-
EJB Finder method problem (2 messages)
- Posted by: vikas gupta
- Posted on: June 08 2005 02:51 EDT
Threaded Messages (2)
- EJB Finder method problem by Biswa Das on June 08 2005 14:54 EDT
- EJB Finder method problem by vikas gupta on June 18 2005 08:17 EDT
-
EJB Finder method problem[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 08 2005 14:54 EDT
- in response to vikas gupta
Have you mapped your bean field to database column name correctly in your vendor specific rdbms deployment descriptor.
I mean "weblogic-cmp-rdbms-jar.xml" as in the case of weblogic.
jbosscmp-jdbc.xml in case of JBoss
<weblogic-rdbms-bean>
<ejb-name>com.bd.ejb.entity.cmp.accounts</ejb-name>
<data-source-name>com.bd.datasource.pointbase.POINTBASE_DATASOURCE</data-source-name>
<table-map>
<table-name>ACCOUNTS</table-name>
<field-map>
<cmp-field>accountId</cmp-field>
<dbms-column>ACCT_ID</dbms-column>
</field-map>
<field-map>
<cmp-field>balance</cmp-field>
<dbms-column>BAL</dbms-column>
</field-map>
<field-map>
<cmp-field>accountType</cmp-field>
<dbms-column>TYPE</dbms-column>
</field-map>
<field-map>
<cmp-field>customerName</cmp-field>
<dbms-column>CUST_NAME</dbms-column>
</field-map>
</table-map> -
EJB Finder method problem[ Go to top ]
- Posted by: vikas gupta
- Posted on: June 18 2005 08:17 EDT
- in response to vikas gupta
Hello
the solution to this problem
is
we have to define the EJBQL in the ejb-jar.xml file and in the EJBQL and in the where clause what we have to define is realted to cmp-field pattern
and we have to define the orion-ejb-jar.xml file too where we have to define the finder-method too in which the query is related to the original parameter
so this is the solution of finder method
byeeeeeeeeeeeee