Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] The number of actual and formal parameters differs,

Please include the full exception stack trace.

Booleans can be stored in a number field in Oracle as 0/1, and should be
converted correctly automatically.



ymajoros wrote:
> 
> christopher delahunt a écrit :
>> From the error, it looks like it is  call setParDoctorant and passing 
>> in a "0" instead of a boolean, but the full stack would contain more.  
>> What is the database field type for the PAR_DOCTORANT field, and do 
>> inserts work?
>>
>> If the database field type is not a boolean type, (such as a string or 
>> Integer), you will need to try to map it to something different than a 
>> boolean or use a ObjectTypeConverter mapping:
>>   http://forums.java.net/jive/message.jspa?messageID=203783
>>
>  Ok, it seems I found some workaround: using "Boolean" instead of 
> "boolean". Still, it isn't nullable and I'd like to have a "boolean".
> 
>  What's a "boolean type" in oracle? It's a "number" in the db table, I'm 
> not aware of another way of doing it. Inserts work. Updates work... and 
> it seems to work after the first request anyway. Smells like a bug... 
> Could someone confirm?
> 
> -- 
> Yannick Majoros
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/The-number-of-actual-and-formal-parameters-differs%2C-tp19689637p19724387.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top