Hi, 
I'm new to torque. I have managed to use torque
(versiion 3.1.1) to generate java classes and sql
script. Then I ran into the problem with nullable
field having foreign key constrainte. This field is a
primitive data so according to one guy in the mailing
list, I have to just add defaultJavaType="object".
Unfortunately, after adding that, I got a
ClassCastException when 
trying to insert a object (st. like User user = new
User(); user.setUserFirstName("xxx"); ...;
user.save();

The save method causes an error in BaseUser.java
(generated by Torque) in the setPrimaryKey method. In
the first line of this method, we can see:
SimpleKey[] keys = (SimpleKey[]) key.getValue();

It seems that the cast is not allowed here.

I wonder how it could be possible - having a
successfull automatical generation. 

Could somebody here clarify me about these things?

Thanks a lot
Hoang-Vu






        

        
                
D�couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ 
 
Avec Yahoo! faites un don et soutenez le T�l�thon en cliquant sur 
http://www.telethon.fr/030-Don/10-10_Don.asp

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to