Hi, I am transfer my application from weblogic to orion platform.
 
I encounter some problem with entityBean.
 
How can I bind entityBean's cmp-field attribute with DataBase table' field.
 
my ejb_jar.xml is
--------------------------------
  <entity>
   <ejb-name>sequence.SequenceHome</ejb-name>
   <home>sequence.SequenceHome</home>
   <remote>sequence.Sequence</remote>
   <ejb-class>sequence.SequenceBean</ejb-class>
   <persistence-type>Container</persistence-type>
   <prim-key-class>sequence.SequencePK</prim-key-class>
   <reentrant>False</reentrant>
   <cmp-field>
    <field-name>sequenceId</field-name>
   </cmp-field>
   <cmp-field>
    <field-name>lastNumber</field-name>
   </cmp-field>
   <cmp-field>
    <field-name>minNumber</field-name>
   </cmp-field>
  </entity>
----------------------------------
 
my Question is how to tell entityBean to use which table?
and how to combine cmp-field with database field?
and althogh I have specified datasource at data-sources.xml, how to specify method to connect with database, ?
 
any help thanks.
 
 
 
 

Reply via email to