Yes, there is a way to customize data type on orion specific
"orion-ejb-jar.xml". As far as I know you can redefine persistence-name and
persistence-type right after cmp-field-name for each field you want to
change the name and type in your database. It is working in my case. Here is
a short example:
      <cmp-field-mapping>
       <properties>
        <cmp-field-mapping name="name" persistence-name="customname"
persistence-type="varchar2(50)" />
        <cmp-field-mapping name="typeInt" persistence-name="customtypeInt"
persistence-type="number(20)" />
        <cmp-field-mapping name="value" persistence-name="customvalue"
persistence-type="varchar2(200)" />
       </properties>
      </cmp-field-mapping>

Ruth He

Canlink Interactive Technologies
303 Bagot Street
Kingston, ON, Canada
K7K 5W7

http://www.canlink.com
Phone: 613-549-7883
Email: [EMAIL PROTECTED]
----- Original Message -----
From: Sergei Batiuk <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 10:51 AM
Subject: Customizing CMP deployment


> Is there any way to customize deployment of CMP bean - to indicate the
table
> name in the database to which the entity bean should map its persistence
(in
> case the name of the table is different from the bean name) or the data
> source to connect to. As far as I know orion-ejb-jar.xml is responsible
for
> these properties, but it has no effect <i>before</i> the deployment. Is
> there an orion-specific (or some other) way to deliver such information to
> the container?
>
>


Reply via email to