I'm looking into using orion to talk with a mySQL database that already
exists (actually will exist).  Is there a 'correct' way to map EJB's to
existing tables (or any tools)?  Or do I just create EJB's with the same
name(s) and have persistent members that match the names of the existing
table fields?

Example table below:

CREATE TABLE news
 (
 title TEXT NOT NULL,
 linktext TEXT,
 sm_date VARCHAR(12) NOT NULL,
 sm_time TIME NOT NULL,
 ctprovider VARCHAR(255),
 copyright VARCHAR(255),
 author VARCHAR(255),
 body TEXT NOT NULL,
 photo_count VARCHAR(12),
 doc_id VARCHAR(255),
 rev_id INT,
 abstract TEXT,
 filter VARCHAR(255) NOT NULL,
 id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
)

Thanks

Jason Amy
[EMAIL PROTECTED]


Reply via email to