Results 1 to 1 of 1
Thread: Problems with Find method in EJB
- 05-14-2007, 01:29 PM #1
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
Problems with Find method in EJB
Hello everybody:
I have a problem and I still could not have solved it
I have my bbdd with fields, this fields are varchar type and char.
My problem is with char type and finder methods.
If I have, for example, a field with (char(10)) and I do a EJBQL like this
If the field 2 has this type, never returns me results, if I change the type to a string, it does not happen.Java Code:<query> <query-method> <method-name>findByMiBusqueda</method-name> <method-params> <method-param>java.lang.String</method-param> <method-param>java.lang.String</method-param> </method-params> </query-method> <ejb-ql> <![CDATA[select object(o) from MYEJB o WHERE (o.cod1 = ?1 ) AND (o.cod2 = ?2) ]]> </ejb-ql> </query>
can you help me?
nicholas
Similar Threads
-
Recursive Method ==> find minimum value from array
By NatNat in forum New To JavaReplies: 1Last Post: 02-16-2008, 09:10 PM -
Recursive Method ==> find how many times a value is repeated in an array
By NatNat in forum New To JavaReplies: 2Last Post: 02-16-2008, 08:52 PM -
problems to find the main method
By christina in forum EclipseReplies: 2Last Post: 08-06-2007, 07:51 PM -
problems with replace method
By cecily in forum New To JavaReplies: 1Last Post: 08-02-2007, 09:11 PM -
Problems with method
By ai_2007 in forum Advanced JavaReplies: 1Last Post: 06-28-2007, 06:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks