Hi, there!
I didn't get any responses for the "data-type mapping" since I poster it yesterday. I found out orion recognizes data-type mapping if you define "persistence-type=" " in "orion-ejb-jar.xml" under the certain conditions: prim-key-class is primitive type such as java.lang.String and relationship is between two different entity beans. If prim-key-calss is not primitive, such as java class, or the relationships are between ejb and dependent class, or dependent to dependent, orion ignores whatever I defined in "orion-ejb-jar.xml". Is this a bug or did I missed something? I am using orion 1.4.7.
Any help will be appreciated.
 
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: Ruth He
Sent: Monday, February 26, 2001 12:09 PM
Subject: data-type mapping

Hi, every one there!
I am working around the deployment descriptor "orion-ejb-jar.xml", in order to define fields size to what we are expecting. Orion has automatically generated all fields size for "String" to "varchar2(255)". I defined the field size under tag "persistence-type="varchar2(XX)" and I got the impressions that orion ignores most of them but accepts some. I did not figure out yet what are the rules behind. If any body has experienced the similar situation, please give me some help. I paste the "orion-ejb-jar.xml" as following: 
 
  <entity-deployment name="ApplicationUserEJB">
            <cmp-field-mapping name="groups">
                <set-mapping table="ApplicationUserEJB_groups">
                    <primkey-mapping>
                        <cmp-field-mapping name="loginName" persistence-name="loginName" persistence-type="varchar2(20)"/>
                    </primkey-mapping>
                    <value-mapping type="com.canlink.components.authorization.ApplicationUserGroup">
                        <cmp-field-mapping name="groupName">
                            <entity-ref home="ApplicationUserGroupEJB">
                                <cmp-field-mapping name="name" persistence-name="groupName" persistence-type="varchar2(200)"/>
                            </entity-ref>
                        </cmp-field-mapping>
                    </value-mapping>
                </set-mapping>
            </cmp-field-mapping>
   <cmp-field-mapping name="customPropertyDOs">
    <collection-mapping table="ApplicationUserEJB_customProps" >
                    <primkey-mapping>
                        <cmp-field-mapping name="loginName" persistence-name="loginName" persistence-type="varchar2(20)"/>
                    </primkey-mapping>
     <value-mapping type="com.canlink.components.base.bean.CustomPropertyDependentObject">
      <cmp-field-mapping>
       <properties>
        <cmp-field-mapping>
                   <fields>
                    <cmp-field-mapping name="name" persistence-name="name" persistence-type="varchar2(20)"/>
                    <cmp-field-mapping name="value" persistence-name="value" persistence-type="varchar2(100)"/>
                    <cmp-field-mapping name="typeInt" persistence-name="typeInt" persistence-type="varchar2(20)"/>
                   </fields>
        </cmp-field-mapping>
       </properties>
      </cmp-field-mapping>
     </value-mapping>
    </collection-mapping>     
   </cmp-field-mapping>
  </entity-deployment>
            
 
Ruth He
 
Canlink Interactive Technologies
303 Bagot Street
Kingston, ON, Canada
K7K 5W7
 
http://www.canlink.com
Phone: 613-549-7883
Email: [EMAIL PROTECTED]

Reply via email to