Hi Jason,
The EJB 1.1 specs do not specify how, or even if, an entity bean can be
mapped on to an existing database. So I guess the answer is no, there is
no correct way (nor incorrect way). Changing the persistent field names in
the orion-ejb-jar.xml seems to be the best (only?) way to do it in Orion.
Nick Newman, SCIENTECH Inc
At 08:31 PM 7/30/00 -0700, you wrote:
>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]
>