Hi,

On Mon, 15 Jan 2001, Carl B. Fyffe wrote:

> Can you map a CMP Bean to a database that already exists?  Or must it create
> the tables for you?  I bet the answer is in the deployment descriptor, but I
> can't seem to find it.  Help please.

Others have told you about the auto-generate tables setting, but it's not
all there is to it.

In fact, it's largely irrelevant, since skipping table auto-create does
not magically create the correct table/column bindings for you. You need
to put those in your orion-ejb-jar.xml

IMO, the easy way to do this is the following

1) Start your app as normal
2) As soon as Orion finishes deployment, kill it
3) Edit the generated orion-ejb-jar.xml placing correct table and
column names (don't forget the finders!)
4) Put the edited file in your ejb.jar under /orion (I think)
5) Drop the auto-created tables, if any
6) Redeploy

//Mikko



Reply via email to