geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saraswathi selvaraj <s_sara...@yahoo.com>
Subject Key Generation for Unknown primary field
Date Fri, 04 Nov 2005 12:23:31 GMT
Hi,
   Iam trying to migrate an application from JBoss to
Geronimo, which has an EmployeeEntityBean(CMP). JBoss
uses an Automated key generator for unknown primary
field in the CMP EJB. May i know the geronimo mapping
equivalent snippet for the following mappings in
jbosscmp-jdbc.xml: 
 <jbosscmp-jdbc>
   <entity>
     <unknown-pk>
           <unknown-pk-class>
                    java.lang.Object
           </unknown-pk-class>
           <column-name>
                    ActivityDetailsBean_upk
           </column-name>
           <jdbc-type>VARCHAR</jdbc-type>
           <sql-type>VARCHAR(32)</sql-type>
      </unknown-pk>
      <entity-command name="key-generator"/>
    <entity> 
  <entity-commands>
      <entity-command name="key-generator"            
                  
class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCKeyGeneratorCreateCommand">
         <attribute name="key-generator-factory">     
                                           
                 UUIDKeyGeneratorFactory 
         </attribute>
      </entity-command>
  </entity-commands>                                  
                                                      
            
 </jbosscmp-jdbc>



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

Mime
View raw message