Hi all,

here are my homes interfaces and the tail of my jaws.xml file. Is it
right?

// CustomerHome
package order.common;

import java.util.Collection;
import java.rmi.RemoteException;
import javax.ejb.*;

public interface CustomerHome extends EJBHome {

    public Customer create(String name,
                            String address,
                            int rating,
                            double creditLimit)
        throws RemoteException, CreateException;

    public Customer findByPrimaryKey(String name)
        throws FinderException, RemoteException;

    public Collection findByAddress(String address)
        throws FinderException, RemoteException;
}


// ProductHome
package order.common;

import java.util.Collection;
import java.rmi.RemoteException;
import javax.ejb.*;
public interface ProductHome extends EJBHome {
    public Product create( String productId,
                            String description,
                            String location )
        throws RemoteException, CreateException;

    public Product findByPrimaryKey(String productId)
        throws FinderException, RemoteException;

    public Collection findByLocation(String location)
        throws FinderException, RemoteException;

    public Collection findByQuantity(int lower, int upper)
        throws FinderException, RemoteException;
}

// the <enterprise-bean> part of jaws.xml. Wayting for comments! 
     <enterprise-beans>
       <entity>
         <ejb-name>customerbean</ejb-name>
         <table-name>customer</table-name>
         <create-table>true</create-table>
         <remove-table>false</remove-table>
         <tuned-updates>true</tuned-updates>
         <read-only>false</read-only>
         <time-out>300</time-out>
         <cmp-field>
           <field-name>name</field-name>
           <column-name>name</column-name>
           <sql-type>VARCHAR(256)</sql-type>
           <jdbc-type>VARCHAR</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>creditLimit</field-name>
           <column-name>creditLimit</column-name>
           <sql-type>DOUBLE</sql-type>
           <jdbc-type>DOUBLE</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>rating</field-name>
           <column-name>rating</column-name>
           <sql-type>INTEGER</sql-type>
           <jdbc-type>INTEGER</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>address</field-name>
           <column-name>address</column-name>
           <sql-type>VARCHAR(256)</sql-type>
           <jdbc-type>VARCHAR</jdbc-type>
         </cmp-field>
         <finder>
           <name>findByAddress</name>
           <query>address={0}</query>
           <order></order>
         </finder>
       </entity>
       <entity>
         <ejb-name>productbean</ejb-name>
         <table-name>product</table-name>
         <create-table>true</create-table>
         <remove-table>false</remove-table>
         <tuned-updates>true</tuned-updates>
         <read-only>false</read-only>
         <time-out>300</time-out>
         <cmp-field>
           <field-name>location</field-name>
           <column-name>location</column-name>
           <sql-type>VARCHAR(256)</sql-type>
           <jdbc-type>VARCHAR</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>id</field-name>
           <column-name>id</column-name>
           <sql-type>VARCHAR(256)</sql-type>
           <jdbc-type>VARCHAR</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>description</field-name>
           <column-name>description</column-name>
           <sql-type>VARCHAR(256)</sql-type>
           <jdbc-type>VARCHAR</jdbc-type>
         </cmp-field>
         <cmp-field>
           <field-name>quantity</field-name>
           <column-name>quantity</column-name>
           <sql-type>INTEGER</sql-type>
           <jdbc-type>INTEGER</jdbc-type>
         </cmp-field>
         <finder>
           <name>findByQuantity</name>
           <query>quantity between {0} and {1}</query> //ist this right?
           <order></order>
         </finder>
         <finder>
           <name>findByLocation</name>
           <query>location = {0}</query>
           <order></order>
         </finder>
       </entity>
     </enterprise-beans>

/Francis

-- 
[EMAIL PROTECTED]

MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to