Sorry for asking that stupid question.
I became stupid because of debugging Peer Object for weeks with no
result! I do not know what happened with generated peer.  I tried
idbroker or autoincrement but never success, and tried on WinNT &
Linux for 2 diferent DB: MySQL & MsSQL !! All gave the same
results ! �It always give
me "Connection Object is Null" exception for Insert\Update
operation !

Having been desparate, an idea come from nowhere : change this line
of code :
dbMap = TurbineDB.getDatabaseMap("mydatabase");
in MapBuilder to:
dbMap = TurbineDB.getDatabaseMap("default");

It just worked !
Finally my problem was solved in stupid way :)
(... but still wondering is there side impact on doing that ? )




---- Begin Original Message ----

From: "Frank W. Nolden" <[EMAIL PROTECTED]>
Sent: Fri, 8 Jun 2001 08:50:33 +0200
To: <[EMAIL PROTECTED]>
Subject: Re: question on id_table entry, autoincrement,sequence


Yes, you have to manually add the references to the tables in the
id_table. Also specify the starting number in the table being 0 or 1.
The question has been asked and answered a number of times in the
mailng list ( a good place to start when having problems).

The difference between autoincrement and sequence has to do with the
RDBMS used for your generated sql script. For instance autoincrement
is used in MySQL, but sequence is used in Oracle. This needs some
knowledge of the RDBMS.

Hope this helps you to understand things more.

Frank
 �----- Original Message -----
 �From: Mahfudh Junaryanto
 �To: [EMAIL PROTECTED]
 �Sent: Friday, June 08, 2001 06:11
 �Subject: question on id_table entry, autoincrement,sequence



 �I have a question to ask ...
 �If I choose idbroker in torque xml-schema what then need to be
done,
 �insert new records in id_table manually ? what is the initial
value ?

 �what is the diferent between autoincrement & sequence in
 �database.dtd ?

 �thank you






 �______________________________________________________________
 �For the latest news, go to http://www.asiaone.com
 �And get your free AsiaOne email account and home page

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




---- End Original Message ----




______________________________________________________________
For the latest news, go to http://www.asiaone.com
And get your free AsiaOne email account and home page

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

Reply via email to