<?xml version="1.0"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by BEA demo-only (BEA demo-only) -->
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
	<enterprise-beans>
		<session>
			<description>Deployment descriptor for Rubis SB_ AboutMeBean</description>
			<display-name>RUBiS SB_ AboutMeBean</display-name>
			<ejb-name>SB_AboutMe</ejb-name>
			<home>edu.rice.rubis.beans.SB_AboutMeHome</home>
			<remote>edu.rice.rubis.beans.SB_AboutMe</remote>
			<ejb-class>edu.rice.rubis.beans.SB_AboutMeBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the SB_Auth  bean</description>
				<ejb-ref-name>ejb/SB_Auth</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
				<local>edu.rice.rubis.beans.SB_AuthLocal</local>
				<ejb-link>SB_Auth</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the user  bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the comment bean</description>
				<ejb-ref-name>ejb/Comment</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CommentLocalHome</local-home>
				<local>edu.rice.rubis.beans.CommentLocal</local>
				<ejb-link>Comment</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the buyNow bean</description>
				<ejb-ref-name>ejb/BuyNow</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.BuyNowLocalHome</local-home>
				<local>edu.rice.rubis.beans.BuyNowLocal</local>
				<ejb-link>BuyNow</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
                <description>This is the reference to the bid bean</description>
                <ejb-ref-name>ejb/Bid</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>				
				<local-home>edu.rice.rubis.beans.BidLocalHome</local-home>
				<local>edu.rice.rubis.beans.BidLocal</local>
				<ejb-link>Bid</ejb-link>
            </ejb-local-ref>
            <ejb-local-ref>
                <description>This is the reference to the Query  bean</description>
                <ejb-ref-name>ejb/Query</ejb-ref-name>
		        <ejb-ref-type>Session</ejb-ref-type>	
				<local-home>edu.rice.rubis.beans.QueryLocalHome</local-home>
				<local>edu.rice.rubis.beans.QueryLocal</local>	
				<ejb-link>Query</ejb-link>				
            </ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_ViewBidHistory Bean</description>
			<display-name>RUBiS SB_ViewBidHistory Bean</display-name>
			<ejb-name>SB_ViewBidHistory</ejb-name>
			<home>edu.rice.rubis.beans.SB_ViewBidHistoryHome</home>
			<remote>edu.rice.rubis.beans.SB_ViewBidHistory</remote>
			<ejb-class>edu.rice.rubis.beans.SB_ViewBidHistoryBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_StoreBid Bean</description>
			<display-name>RUBiS SB_StoreBid Bean</display-name>
			<ejb-name>SB_StoreBid</ejb-name>
			<home>edu.rice.rubis.beans.SB_StoreBidHome</home>
			<remote>edu.rice.rubis.beans.SB_StoreBid</remote>
			<ejb-class>edu.rice.rubis.beans.SB_StoreBidBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the bid bean</description>
				<ejb-ref-name>ejb/Bid</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.BidLocalHome</local-home>
				<local>edu.rice.rubis.beans.BidLocal</local>
				<ejb-link>Bid</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_PutBid Bean</description>
			<display-name>RUBiS SB_PutBid Bean</display-name>
			<ejb-name>SB_PutBid</ejb-name>
			<home>edu.rice.rubis.beans.SB_PutBidHome</home>
			<remote>edu.rice.rubis.beans.SB_PutBid</remote>
			<ejb-class>edu.rice.rubis.beans.SB_PutBidBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-ref>
				<description>This is the reference to the SB_ViewItem  bean</description>
				<ejb-ref-name>ejb/SB_ViewItem</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<home>edu.rice.rubis.beans.SB_ViewItemHome</home>
				<remote>edu.rice.rubis.beans.SB_ViewItem</remote>
				<ejb-link>SB_ViewItem</ejb-link>
			</ejb-ref>
			<ejb-local-ref>
				<description>This is the reference to the SB_Auth  bean</description>
				<ejb-ref-name>ejb/SB_Auth</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
				<local>edu.rice.rubis.beans.SB_AuthLocal</local>
				<ejb-link>SB_Auth</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_StoreBuyNow Bean</description>
			<display-name>RUBiS SB_StoreBuyNow Bean</display-name>
			<ejb-name>SB_StoreBuyNow</ejb-name>
			<home>edu.rice.rubis.beans.SB_StoreBuyNowHome</home>
			<remote>edu.rice.rubis.beans.SB_StoreBuyNow</remote>
			<ejb-class>edu.rice.rubis.beans.SB_StoreBuyNowBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the buyNow bean</description>
				<ejb-ref-name>ejb/BuyNow</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.BuyNowLocalHome</local-home>
				<local>edu.rice.rubis.beans.BuyNowLocal</local>
				<ejb-link>BuyNow</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_BuyNow Bean</description>
			<display-name>RUBiS SB_BuyNow Bean</display-name>
			<ejb-name>SB_BuyNow</ejb-name>
			<home>edu.rice.rubis.beans.SB_BuyNowHome</home>
			<remote>edu.rice.rubis.beans.SB_BuyNow</remote>
			<ejb-class>edu.rice.rubis.beans.SB_BuyNowBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the SB_Auth  bean</description>
				<ejb-ref-name>ejb/SB_Auth</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
				<local>edu.rice.rubis.beans.SB_AuthLocal</local>
				<ejb-link>SB_Auth</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
                <description>This is the reference to the Query  bean</description>
                <ejb-ref-name>ejb/Query</ejb-ref-name>
		        <ejb-ref-type>Session</ejb-ref-type>	
				<local-home>edu.rice.rubis.beans.QueryLocalHome</local-home>
				<local>edu.rice.rubis.beans.QueryLocal</local>	
				<ejb-link>Query</ejb-link>				
            </ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_RegisterUser Bean</description>
			<display-name>RUBiS SB_RegisterUser Bean</display-name>
			<ejb-name>SB_RegisterUser</ejb-name>
			<home>edu.rice.rubis.beans.SB_RegisterUserHome</home>
			<remote>edu.rice.rubis.beans.SB_RegisterUser</remote>
			<ejb-class>edu.rice.rubis.beans.SB_RegisterUserBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the region bean</description>
				<ejb-ref-name>ejb/Region</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.RegionLocalHome</local-home>
				<local>edu.rice.rubis.beans.RegionLocal</local>
				<ejb-link>Region</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the user bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_RegisterItem Bean</description>
			<display-name>RUBiS SB_RegisterItem Bean</display-name>
			<ejb-name>SB_RegisterItem</ejb-name>
			<home>edu.rice.rubis.beans.SB_RegisterItemHome</home>
			<remote>edu.rice.rubis.beans.SB_RegisterItem</remote>
			<ejb-class>edu.rice.rubis.beans.SB_RegisterItemBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_StoreComment Bean</description>
			<display-name>RUBiS SB_StoreComment Bean</display-name>
			<ejb-name>SB_StoreComment</ejb-name>
			<home>edu.rice.rubis.beans.SB_StoreCommentHome</home>
			<remote>edu.rice.rubis.beans.SB_StoreComment</remote>
			<ejb-class>edu.rice.rubis.beans.SB_StoreCommentBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the user bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the comment bean</description>
				<ejb-ref-name>ejb/Comment</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CommentLocalHome</local-home>
				<local>edu.rice.rubis.beans.CommentLocal</local>
				<ejb-link>Comment</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_PutComment Bean</description>
			<display-name>RUBiS SB_PutComment Bean</display-name>
			<ejb-name>SB_PutComment</ejb-name>
			<home>edu.rice.rubis.beans.SB_PutCommentHome</home>
			<remote>edu.rice.rubis.beans.SB_PutComment</remote>
			<ejb-class>edu.rice.rubis.beans.SB_PutCommentBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the user bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the SB_Auth  bean</description>
				<ejb-ref-name>ejb/SB_Auth</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
				<local>edu.rice.rubis.beans.SB_AuthLocal</local>
				<ejb-link>SB_Auth</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_ViewUserInfo Bean</description>
			<display-name>RUBiS SB_ViewUserInfo Bean</display-name>
			<ejb-name>SB_ViewUserInfo</ejb-name>
			<home>edu.rice.rubis.beans.SB_ViewUserInfoHome</home>
			<remote>edu.rice.rubis.beans.SB_ViewUserInfo</remote>
			<ejb-class>edu.rice.rubis.beans.SB_ViewUserInfoBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the user bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the comment bean</description>
				<ejb-ref-name>ejb/Comment</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CommentLocalHome</local-home>
				<local>edu.rice.rubis.beans.CommentLocal</local>
				<ejb-link>Comment</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_ViewItem Bean</description>
			<display-name>RUBiS SB_ViewItem Bean</display-name>
			<ejb-name>SB_ViewItem</ejb-name>
			<home>edu.rice.rubis.beans.SB_ViewItemHome</home>
			<remote>edu.rice.rubis.beans.SB_ViewItem</remote>
			<ejb-class>edu.rice.rubis.beans.SB_ViewItemBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the bid bean</description>
				<ejb-ref-name>ejb/Bid</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.BidLocalHome</local-home>
				<local>edu.rice.rubis.beans.BidLocal</local>
				<ejb-link>Bid</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
                <description>This is the reference to the Query  bean</description>
                <ejb-ref-name>ejb/Query</ejb-ref-name>
		        <ejb-ref-type>Session</ejb-ref-type>	
				<local-home>edu.rice.rubis.beans.QueryLocalHome</local-home>
				<local>edu.rice.rubis.beans.QueryLocal</local>	
				<ejb-link>Query</ejb-link>				
            </ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_SearchItemsByRegion Bean</description>
			<display-name>RUBiS SB_SearchItemsByRegion Bean</display-name>
			<ejb-name>SB_SearchItemsByRegion</ejb-name>
			<home>edu.rice.rubis.beans.SB_SearchItemsByRegionHome</home>
			<remote>edu.rice.rubis.beans.SB_SearchItemsByRegion</remote>
			<ejb-class>edu.rice.rubis.beans.SB_SearchItemsByRegionBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the Category bean</description>
				<ejb-ref-name>ejb/Category</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
				<local>edu.rice.rubis.beans.CategoryLocal</local>
				<ejb-link>Category</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
                <description>This is the reference to the Query  bean</description>
                <ejb-ref-name>ejb/Query</ejb-ref-name>
		        <ejb-ref-type>Session</ejb-ref-type>	
				<local-home>edu.rice.rubis.beans.QueryLocalHome</local-home>
				<local>edu.rice.rubis.beans.QueryLocal</local>	
				<ejb-link>Query</ejb-link>				
            </ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_SearchItemsByCategory Bean</description>
			<display-name>RUBiS SB_SearchItemsByCategory Bean</display-name>
			<ejb-name>SB_SearchItemsByCategory</ejb-name>
			<home>edu.rice.rubis.beans.SB_SearchItemsByCategoryHome</home>
			<remote>edu.rice.rubis.beans.SB_SearchItemsByCategory</remote>
			<ejb-class>edu.rice.rubis.beans.SB_SearchItemsByCategoryBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the item bean</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the Category bean</description>
				<ejb-ref-name>ejb/Category</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
				<local>edu.rice.rubis.beans.CategoryLocal</local>
				<ejb-link>Category</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
                <description>This is the reference to the Query  bean</description>
                <ejb-ref-name>ejb/Query</ejb-ref-name>
		        <ejb-ref-type>Session</ejb-ref-type>	
				<local-home>edu.rice.rubis.beans.QueryLocalHome</local-home>
				<local>edu.rice.rubis.beans.QueryLocal</local>	
				<ejb-link>Query</ejb-link>				
            </ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_BrowseRegions Bean</description>
			<display-name>RUBiS SB_BrowseRegions Bean</display-name>
			<ejb-name>SB_BrowseRegions</ejb-name>
			<home>edu.rice.rubis.beans.SB_BrowseRegionsHome</home>
			<remote>edu.rice.rubis.beans.SB_BrowseRegions</remote>
			<ejb-class>edu.rice.rubis.beans.SB_BrowseRegionsBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the region bean</description>
				<ejb-ref-name>ejb/Region</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.RegionLocalHome</local-home>
				<local>edu.rice.rubis.beans.RegionLocal</local>
				<ejb-link>Region</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_BrowseCategories Bean</description>
			<display-name>RUBiS SB_BrowseCategories Bean</display-name>
			<ejb-name>SB_BrowseCategories</ejb-name>
			<home>edu.rice.rubis.beans.SB_BrowseCategoriesHome</home>
			<remote>edu.rice.rubis.beans.SB_BrowseCategories</remote>
			<ejb-class>edu.rice.rubis.beans.SB_BrowseCategoriesBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Bean</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the region bean</description>
				<ejb-ref-name>ejb/Region</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.RegionLocalHome</local-home>
				<local>edu.rice.rubis.beans.RegionLocal</local>
				<ejb-link>Region</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the category  bean</description>
				<ejb-ref-name>ejb/Category</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
				<local>edu.rice.rubis.beans.CategoryLocal</local>
				<ejb-link>Category</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the SB_Auth  bean</description>
				<ejb-ref-name>ejb/SB_Auth</ejb-ref-name>
				<ejb-ref-type>Session</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
				<local>edu.rice.rubis.beans.SB_AuthLocal</local>
				<ejb-link>SB_Auth</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<session>
			<description>Deployment descriptor for Rubis SB_Auth Bean</description>
			<display-name>RUBiS SB_Auth Bean</display-name>
			<ejb-name>SB_Auth</ejb-name>
			<local-home>edu.rice.rubis.beans.SB_AuthLocalHome</local-home>
			<local>edu.rice.rubis.beans.SB_AuthLocal</local>
			<ejb-class>edu.rice.rubis.beans.SB_AuthBean</ejb-class>
			<session-type>Stateless</session-type>
			<transaction-type>Container</transaction-type>
			<ejb-local-ref>
				<description>This is the reference to the user  bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</session>
		<entity>
			<description>Category Bean deployment descriptor</description>
			<display-name>Category</display-name>
			<ejb-name>Category</ejb-name>
			<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
			<local>edu.rice.rubis.beans.CategoryLocal</local>
			<ejb-class>edu.rice.rubis.beans.CategoryBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.CategoryPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>CategoryBean</abstract-schema-name>
			<cmp-field>
				<field-name>name</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByName</method-name>
					<method-params>
						<method-param>java.lang.String</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT DISTINCT OBJECT(c)
                    FROM CategoryBean c
                    WHERE c.name = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllCategories</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(c)
                    FROM CategoryBean c
               ]]></ejb-ql>
			</query>
			
		</entity>
		<entity>
			<description>Region Bean deployment descriptor</description>
			<display-name>Region</display-name>
			<ejb-name>Region</ejb-name>
			<local-home>edu.rice.rubis.beans.RegionLocalHome</local-home>
			<local>edu.rice.rubis.beans.RegionLocal</local>
			<ejb-class>edu.rice.rubis.beans.RegionBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.RegionPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>RegionBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>name</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByName</method-name>
					<method-params>
						<method-param>java.lang.String</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT DISTINCT OBJECT(r)
                    FROM RegionBean r
                    WHERE r.name = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllRegions</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(r)
                    FROM RegionBean r
               ]]></ejb-ql>
			</query>
		</entity>
		<entity>
			<description>User Bean deployment descriptor</description>
			<display-name>User</display-name>
			<ejb-name>User</ejb-name>
			<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
			<local>edu.rice.rubis.beans.UserLocal</local>
			<ejb-class>edu.rice.rubis.beans.UserBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.UserPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>UserBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>firstName</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>lastName</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>nickName</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>password</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>email</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>rating</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>balance</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>creationDate</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>regionId</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByNickName</method-name>
					<method-params>
						<method-param>java.lang.String</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT DISTINCT OBJECT(u)
                    FROM UserBean u
                    WHERE u.nickName = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllUsers</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(u)
                    FROM UserBean u
               ]]></ejb-ql>
			</query>
			
		</entity>
		<entity>
			<description>Item Bean deployment descriptor</description>
			<display-name>Item</display-name>
			<ejb-name>Item</ejb-name>
			<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
			<local>edu.rice.rubis.beans.ItemLocal</local>
			<ejb-class>edu.rice.rubis.beans.ItemBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.ItemPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>ItemBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>name</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>description</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>initialPrice</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>quantity</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>reservePrice</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>buyNow</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>nbOfBids</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>maxBid</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>startDate</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>endDate</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>sellerId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>categoryId</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the user  bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the category  bean</description>
				<ejb-ref-name>ejb/Category</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
				<local>edu.rice.rubis.beans.CategoryLocal</local>
				<ejb-link>Category</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findBySeller</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(i)
                    FROM ItemBean i
                    WHERE i.sellerId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByCategory</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(i)
                    FROM ItemBean i
                    WHERE i.categoryId = ?1
               ]]></ejb-ql>
			</query>		
			<query>
				<query-method>
					<method-name>findAllItems</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(i)
                    FROM ItemBean i
               ]]></ejb-ql>
			</query>			
		</entity>
		<entity>
			<description>Old Item Bean deployment descriptor</description>
			<display-name>Old Item</display-name>
			<ejb-name>OldItem</ejb-name>
			<local-home>edu.rice.rubis.beans.OldItemLocalHome</local-home>
			<local>edu.rice.rubis.beans.OldItemLocal</local>
			<ejb-class>edu.rice.rubis.beans.OldItemBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.OldItemPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>OldItemBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>name</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>description</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>initialPrice</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>quantity</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>reservePrice</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>buyNow</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>nbOfBids</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>maxBid</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>startDate</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>endDate</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>sellerId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>categoryId</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the user  bean</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the category  bean</description>
				<ejb-ref-name>ejb/Category</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.CategoryLocalHome</local-home>
				<local>edu.rice.rubis.beans.CategoryLocal</local>
				<ejb-link>Category</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findBySeller</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(o)
                    FROM OldItemBean o
                    WHERE o.sellerId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByCategory</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(o)
                    FROM OldItemBean o
                    WHERE o.categoryId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllItems</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(o)
                    FROM OldItemBean o
               ]]></ejb-ql>
			</query>
		</entity>
		<entity>
			<description>Bid Bean deployment descriptor</description>
			<display-name>Bid</display-name>
			<ejb-name>Bid</ejb-name>
			<local-home>edu.rice.rubis.beans.BidLocalHome</local-home>
			<local>edu.rice.rubis.beans.BidLocal</local>
			<ejb-class>edu.rice.rubis.beans.BidBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.BidPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>BidBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>userId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>itemId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>quantity</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>bid</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>maxBid</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>date</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the user</description>
				<ejb-ref-name>ejb/User</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.UserLocalHome</local-home>
				<local>edu.rice.rubis.beans.UserLocal</local>
				<ejb-link>User</ejb-link>
			</ejb-local-ref>
			<ejb-local-ref>
				<description>This is the reference to the item</description>
				<ejb-ref-name>ejb/Item</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.ItemLocalHome</local-home>
				<local>edu.rice.rubis.beans.ItemLocal</local>
				<ejb-link>Item</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByItem</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BidBean b
                    WHERE b.itemId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByUser</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BidBean b
                    WHERE b.userId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllBids</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BidBean b
               ]]></ejb-ql>
			</query>
		</entity>
		<entity>
			<description>Comment Bean deployment descriptor</description>
			<display-name>Comment</display-name>
			<ejb-name>Comment</ejb-name>
			<local-home>edu.rice.rubis.beans.CommentLocalHome</local-home>
			<local>edu.rice.rubis.beans.CommentLocal</local>
			<ejb-class>edu.rice.rubis.beans.CommentBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.CommentPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>CommentBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>fromUserId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>toUserId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>itemId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>rating</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>date</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>comment</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByItem</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(c)
                    FROM CommentBean c
                    WHERE c.itemId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByFromUser</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(c)
                    FROM CommentBean c
                    WHERE c.fromUserId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByToUser</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(c)
                    FROM CommentBean c
                    WHERE c.toUserId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllComments</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(c)
                    FROM CommentBean c
               ]]></ejb-ql>
			</query>
		</entity>
		<entity>
			<description>BuyNow Bean deployment descriptor</description>
			<display-name>BuyNow</display-name>
			<ejb-name>BuyNow</ejb-name>
			<local-home>edu.rice.rubis.beans.BuyNowLocalHome</local-home>
			<local>edu.rice.rubis.beans.BuyNowLocal</local>
			<ejb-class>edu.rice.rubis.beans.BuyNowBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.BuyNowPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>BuyNowBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>buyerId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>itemId</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>quantity</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>date</field-name>
			</cmp-field>
			<ejb-local-ref>
				<description>This is the reference to the id manager</description>
				<ejb-ref-name>ejb/IDManager</ejb-ref-name>
				<ejb-ref-type>Entity</ejb-ref-type>
				<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
				<local>edu.rice.rubis.beans.IDManagerLocal</local>
				<ejb-link>IDManager</ejb-link>
			</ejb-local-ref>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
			<query>
				<query-method>
					<method-name>findByItem</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BuyNowBean b
                    WHERE b.itemId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findByUser</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BuyNowBean b
                    WHERE b.buyerId = ?1
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findAllBuyNows</method-name>
					<method-params/>
				</query-method>
				<ejb-ql><![CDATA[
                    SELECT OBJECT(b)
                    FROM BuyNowBean b
               ]]></ejb-ql>
			</query>
			<query>
				<query-method>
					<method-name>findUserBuyNow</method-name>
					<method-params>
						<method-param>java.lang.Integer</method-param>
					</method-params>
				</query-method>
				<ejb-ql/>
			</query>
		</entity>
		<entity>
			<description>IDManager Bean deployment descriptor</description>
			<display-name>IDManager</display-name>
			<ejb-name>IDManager</ejb-name>
			<local-home>edu.rice.rubis.beans.IDManagerLocalHome</local-home>
			<local>edu.rice.rubis.beans.IDManagerLocal</local>
			<ejb-class>edu.rice.rubis.beans.IDManagerBean</ejb-class>
			<persistence-type>Container</persistence-type>
			<prim-key-class>edu.rice.rubis.beans.IDManagerPK</prim-key-class>
			<reentrant>False</reentrant>
			<cmp-version>2.x</cmp-version>
			<abstract-schema-name>IDManagerBean</abstract-schema-name>
			<cmp-field>
				<field-name>id</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>categoryCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>regionCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>userCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>itemCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>commentCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>bidCount</field-name>
			</cmp-field>
			<cmp-field>
				<field-name>buyNowCount</field-name>
			</cmp-field>
			<resource-ref>
				<res-ref-name>jdbc/rubis</res-ref-name>
				<res-type>javax.sql.DataSource</res-type>
				<res-auth>Container</res-auth>
			</resource-ref>
		</entity>
	</enterprise-beans>

	<assembly-descriptor>
		<container-transaction>
			<method>
				<ejb-name>SB_Auth</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>Category</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>Region</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
			<!--set to required to prevent an error getting tx data map, NPE on region.getId-->
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>User</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>Item</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
			<!--set to required to prevent an error getting tx data map, NPE-->
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>OldItem</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Supports</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>Bid</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
			<!--set to required to prevent an error getting tx data map, NPE-->
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>Comment</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>BuyNow</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
		<container-transaction>
			<method>
				<ejb-name>IDManager</ejb-name>
				<method-name>*</method-name>
			</method>
			<trans-attribute>Required</trans-attribute>
		</container-transaction>
	</assembly-descriptor>
</ejb-jar>
