-
problem weblogic 6.1 with Jbuilder6 entr
I have problems with my entity beans cmp.
In the local home interface I have a finder definition:
public Collection findByClientID(java.lang.Integer idCli) throws FinderException;
and in the ejb-jar(xml):
<query>
<query-method>
<method-name>findByClientID</method-name>
<method-params>
<method-param>java.land.Integer</method-param>
</method-params>
</query-method>
<result-type-mapping>local</result-type-mapping>
<ejb-ql><![CDATA[ SELECT OBJECT(a) FROM UpdateFacture AS a WHERE a.idClient=?1]]>
</ejb-ql>
</query>
but when I deploy the jar in weblogic,
I have this exception:
couldn't parse ejb-ql expression "select etc..."
could someone help me please
-
Re: problem weblogic 6.1 with Jbuilder6 entr
In the select the AS is not needed, try this statement:
SELECT OBJECT(a) FROM UpdateFacture a WHERE a.idClient=?1
Let me know if this one did not work either.
Best regards,
Carlos Saltos
Infoobar
IT Manager
http://www.infoobar.com
"bzoler" <bzoler@skynet.be> wrote:
>
>I have problems with my entity beans cmp.
>In the local home interface I have a finder definition:
>public Collection findByClientID(java.lang.Integer idCli) throws FinderException;
>
>
>
>and in the ejb-jar(xml):
><query>
><query-method>
><method-name>findByClientID</method-name>
><method-params>
><method-param>java.land.Integer</method-param>
></method-params>
></query-method>
><result-type-mapping>local</result-type-mapping>
><ejb-ql>[CDATA[ SELECT OBJECT(a) FROM UpdateFacture AS a WHERE a.idClient=?1]]
>
></ejb-ql>
></query>
>
>but when I deploy the jar in weblogic,
>I have this exception:
>
>couldn't parse ejb-ql expression "select etc..."
>
>could someone help me please
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks