db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saravana Krishnan Kannan" <skka...@mail.uky.edu>
Subject Re: ERROR: Database insert attempted without anything specified to insert
Date Wed, 18 Aug 2004 15:57:18 GMT
Hi,

Just curious, Why would you want such a table?? Also, specify the error messages if you want
someone to help you. Without the error messages we probably are as clueless as you.

-Sarav


-----Original Message-----
From: "Ferruh Zamangoer" <ferruh.zamangoer@gistec-online.de>
To: <torque-user@db.apache.org>
Date: Wed, 18 Aug 2004 17:31:39 +0200
Subject: ERROR: Database insert attempted without anything specified to insert

Hi,

i just try to insert a value into table where I have only one Field, which
is also the primary key field. In the tutorial I have seen the following
code for inserting:

Publisher addison = new Publisher();
addison.setName("Addison Wesley Professional");
addison.save();

What I want to make is like this:

Publisher addison = new Publisher();
addison.save();

But it doesn't work.

I've defined the table in the project-schema.xml like this for example:

<table name="publisher" description="Publisher Table">
    <column
      name="publisher_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Publisher Id"/>

Thanks for any help.

regards
Ferruh



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





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


Mime
View raw message