You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jason Pyeron <jp...@pdinc.us> on 2004/08/27 06:02:40 UTC

MySQL and primary keys

Can anyone help with this one?

I feel very silly, it has been a long time since I used OJB.

Now I am trying to use odmg, just like section 4.4.3.3, but I get an 
exception.

org.apache.ojb.broker.PersistenceBrokerSQLException: SQL failure while 
insert object data for class  
com.pyerotechnics.product.bozman.tier1.dataobjects.AutoBaseObject$members,  
PK of the given object is [ id=null], object was  
com.pyerotechnics.product.bozman.tier1.dataobjects.AutoBaseObject$members@a084f8, 
exception message is 

[General error,  message from server: "Column 'id' cannot be null"]

the full trace and my repository.xml, OJB.properties are at

 http://projects.pyerotechnics.com/show_bug.cgi?id=140

Many thanks,

Jason Pyeron

p.s. out Reverse DB tool is coming along nicely

 http://public.pyerotechnics.com/cordova

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Partner & Sr. Manager         Pyerotechnics Development, Inc. -
- +1 (443) 451-2697             500 West University Parkway #1S -
- +1 (410) 808-6646 (c)         Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: MySQL and primary keys

Posted by Jason Pyeron <jp...@pdinc.us>.
Thanks it was the primary key was not auto_increment.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Partner & Sr. Manager         Pyerotechnics Development, Inc. -
- +1 (443) 451-2697             500 West University Parkway #1S -
- +1 (410) 808-6646 (c)         Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org