You can put the modified orion-ejb-jar.xml in :
/ear/ejb/orion/orion-ejb-jar.xml.
The modified archive will then be deployed next time.
Search the mail archives on www.orionserver.com for more detailed
instructions.
> -----Original Message-----
> From: Krishnan Raghunathan [SMTP:[EMAIL PROTECTED]]
> Sent: September 7, 2000 1:40 PM
> To: Orion-Interest
> Subject: Re: Mapping CMP Entity bean fields to an existing database
> table
>
> is there another way of specifying tablenames and finder methods query,
> other than putting it in the orion-ejb-jar.xml. As i understand now it
> should be kept in application-deployments\<application-name> directory and
> gets modified by the server every time it deploys the bean.
>
> It would be better to have it in the application source-metainf directory
> and have orion pick it up from there. Is there any way out?
>
> Dave Smith <[EMAIL PROTECTED]> wrote:
>
>
> 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
>
>
>
>
> _____
>
> Do You Yahoo!?
> Yahoo! Mail <http://mail.yahoo.com/> - Free email you can access from
> anywhere!