On Oct 27, 2008, at 10:15 PM, Guido Neitzer wrote:

On 27.10.2008, at 21:02, Cheong Hee (Datasonic) wrote:

You need to map the data to the column name properly, generate primay keys etc. I probably did it the wrong way, and I need to generate my own primary key for each raw data to insert into db.

It really depends on the database and it is not hard to use the same mechanisms WebObjects uses. In PostgreSQL sequences, in FrontBase the "select unique ..." feature and so on.
Similarly in Mysql, creating a column as auto-increment can save all the "hassle" of generating a primary key.

There are many situations where EOF is the right tool, but there are also situations where there are better and faster ways.

Even with WebObjects you should recognize a screw even if you only have a hammer at hand ...

Amen!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to