Modify the orion-ejb-jar.xml file:

find the entity bean in question and change the table attribute for the bean.

e.g.
<entity-deployment name="myBean" table="myDBTable">

Vincent Serpico wrote:

"Tilchen, Matt" wrote:
 

Hello all,
             I have deployed a few CMP entity beans to orion and have noticed how it autocreates tables by default. I understand that you can turn this feature off, but I would actually like to specify fields in tables that already exist in my database for Orion to use for container managed persistence. Can you do this in orion? Any suggestion would be greatly appreciated. Thank you all for your time...

-Matt Tilchen
[EMAIL PROTECTED]

Supposedly you can do this in the orion-ejb-jar.xml file. I've only been able to map my class variables to my field names there.
To specify the table name, I set the <ejb-name> in the dd to the table name.
 

-Vince

--
Dave Smith

Software Development Manager
e-Net Software Limited
Bath
United Kingdom

[EMAIL PROTECTED]
 

begin:vcard 
n:Smith;Dave
tel;cell:+44 797 0008867
tel;work:+44 1225 445610
x-mozilla-html:TRUE
url:http://www.enetgroup.co.uk
org:e-Net Software Ltd
adr:;;26-45 Cheltenham Street;Bath;;BA2 3EX;United Kingdom
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Development Manager
fn:Dave Smith
end:vcard

Reply via email to