cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r419093 [3/8] - in /incubator/cayenne/examples/trunk/cayenne-petstore: ./ devlib/ dist/ lib/ src/ src/org/ src/org/objectstyle/ src/org/objectstyle/petstore/ src/org/objectstyle/petstore/dao/ src/org/objectstyle/petstore/dao/impl/ src/org/o...
Date Tue, 04 Jul 2006 20:47:15 GMT
Added: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore-dataload.sql
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore-dataload.sql?rev=419093&view=auto
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore-dataload.sql (added)
+++ incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore-dataload.sql Tue Jul  4 13:47:09 2006
@@ -0,0 +1,99 @@
+INSERT INTO signon (username, password) VALUES('j2ee','j2ee');
+INSERT INTO signon (username, password) VALUES('ACID','ACID');
+
+INSERT INTO account (userid, email, firstname,lastname, status, addr1, addr2, city, state, zip, country, phone) VALUES('j2ee','yourname@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA',  '555-555-5555');
+INSERT INTO account (userid, email, firstname,lastname, status, addr1, addr2, city, state, zip, country, phone) VALUES('ACID','acid@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA',  '555-555-5555');
+
+INSERT INTO profile (userid,langpref,favcategory,mylistopt,banneropt) VALUES('j2ee','english','DOGS',1,1);
+INSERT INTO profile (userid,langpref,favcategory,mylistopt,banneropt) VALUES('ACID','english','CATS',1,1);
+
+INSERT INTO bannerdata (favcategory,bannername) VALUES ('FISH','<image src="../images/banner_fish.gif">');
+INSERT INTO bannerdata (favcategory,bannername) VALUES ('CATS','<image src="../images/banner_cats.gif">');
+INSERT INTO bannerdata (favcategory,bannername) VALUES ('DOGS','<image src="../images/banner_dogs.gif">');
+INSERT INTO bannerdata (favcategory,bannername) VALUES ('REPTILES','<image src="../images/banner_reptiles.gif">');
+INSERT INTO bannerdata (favcategory,bannername) VALUES ('BIRDS','<image src="../images/banner_birds.gif">');
+
+INSERT INTO category (catid,name,descn) VALUES ('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>');
+INSERT INTO category (catid,name,descn) VALUES ('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>');
+INSERT INTO category (catid,name,descn) VALUES ('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>');
+INSERT INTO category (catid,name,descn) VALUES ('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>');
+INSERT INTO category (catid,name,descn) VALUES ('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>');
+
+INSERT INTO product (productid,category,name,descn) VALUES ('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.gif">Salt Water fish from Australia');
+INSERT INTO product (productid,category,name,descn) VALUES ('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia');
+INSERT INTO product (productid,category,name,descn) VALUES ('FI-FW-01','FISH', 'Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan');
+INSERT INTO product (productid,category,name,descn) VALUES ('FI-FW-02','FISH', 'Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-DL-01','DOGS', 'Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-RT-01','DOGS', 'Golden Retriever','<image src="../images/dog1.gif">Great family dog');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-RT-02','DOGS', 'Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog');
+INSERT INTO product (productid,category,name,descn) VALUES ('K9-CW-01','DOGS', 'Chihuahua','<image src="../images/dog4.gif">Great companion dog');
+INSERT INTO product (productid,category,name,descn) VALUES ('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/snake1.gif">Doubles as a watch dog');
+INSERT INTO product (productid,category,name,descn) VALUES ('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard1.gif">Friendly green friend');
+INSERT INTO product (productid,category,name,descn) VALUES ('FL-DSH-01','CATS','Manx','<image src="../images/cat2.gif">Great for reducing mouse populations');
+INSERT INTO product (productid,category,name,descn) VALUES ('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess');
+INSERT INTO product (productid,category,name,descn) VALUES ('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird2.gif">Great companion for up to 75 years');
+INSERT INTO product (productid,category,name,descn) VALUES ('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever');
+
+INSERT INTO supplier (suppid,name,status,addr1,addr2,city,state,zip,phone) VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797');
+INSERT INTO supplier (suppid,name,status,addr1,addr2,city,state,zip,phone) VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797');
+
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-1','FI-SW-01',16.50,10.00,1,'P','Large');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-2','FI-SW-01',16.50,10.00,1,'P','Small');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-19','AV-SB-02',15.50, 2.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-20','FI-FW-02',5.50, 2.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-21','FI-FW-02',5.29, 1.00,1,'P','Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-22','K9-RT-02',135.50, 100.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-23','K9-RT-02',145.49, 100.00,1,'P','Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-24','K9-RT-02',255.50, 92.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-25','K9-RT-02',325.29, 90.00,1,'P','Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-26','K9-CW-01',125.50, 92.00,1,'P','Adult Male');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-27','K9-CW-01',155.29, 90.00,1,'P','Adult Female');
+INSERT INTO  item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES('EST-28','K9-RT-01',155.29, 90.00,1,'P','Adult Female');
+
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-1',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-2',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-3',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-4',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-5',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-6',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-7',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-8',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-9',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-10',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-11',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-12',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-13',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-14',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-15',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-16',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-17',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-18',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-19',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-20',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-21',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-22',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-23',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-24',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-25',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-26',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-27',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-28',10000);
+

Propchange: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore-dataload.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.driver.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.driver.xml?rev=419093&view=auto
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.driver.xml (added)
+++ incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.driver.xml Tue Jul  4 13:47:09 2006
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<driver project-version="1.1" class="org.apache.derby.jdbc.EmbeddedDriver">
+	<url value="jdbc:derby:petstoredb;create=true"/>
+	<connectionPool min="1" max="5" />
+</driver>

Added: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.map.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.map.xml?rev=419093&view=auto
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.map.xml (added)
+++ incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/petstore.map.xml Tue Jul  4 13:47:09 2006
@@ -0,0 +1,320 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data-map project-version="1.1">
+	<property name="defaultPackage" value="org.objectstyle.petstore.domain"/>
+	<db-entity name="account">
+		<db-attribute name="addr1" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="addr2" type="VARCHAR" length="40"/>
+		<db-attribute name="city" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="country" type="VARCHAR" isMandatory="true" length="20"/>
+		<db-attribute name="email" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="firstname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="lastname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="phone" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="state" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="status" type="VARCHAR" length="2"/>
+		<db-attribute name="userid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="80"/>
+		<db-attribute name="zip" type="VARCHAR" isMandatory="true" length="20"/>
+	</db-entity>
+	<db-entity name="bannerdata">
+		<db-attribute name="bannername" type="VARCHAR" length="255"/>
+		<db-attribute name="favcategory" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="80"/>
+	</db-entity>
+	<db-entity name="category">
+		<db-attribute name="catid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="10"/>
+		<db-attribute name="descn" type="VARCHAR" length="255"/>
+		<db-attribute name="name" type="VARCHAR" length="80"/>
+	</db-entity>
+	<db-entity name="inventory">
+		<db-attribute name="itemid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="10"/>
+		<db-attribute name="qty" type="INTEGER" isMandatory="true" length="4"/>
+	</db-entity>
+	<db-entity name="item">
+		<db-attribute name="attr1" type="VARCHAR" length="80"/>
+		<db-attribute name="attr2" type="VARCHAR" length="80"/>
+		<db-attribute name="attr3" type="VARCHAR" length="80"/>
+		<db-attribute name="attr4" type="VARCHAR" length="80"/>
+		<db-attribute name="attr5" type="VARCHAR" length="80"/>
+		<db-attribute name="itemid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="10"/>
+		<db-attribute name="listprice" type="NUMERIC" length="10" precision="2"/>
+		<db-attribute name="productid" type="VARCHAR" isMandatory="true" length="10"/>
+		<db-attribute name="status" type="VARCHAR" length="2"/>
+		<db-attribute name="supplier" type="INTEGER" length="4"/>
+		<db-attribute name="unitcost" type="NUMERIC" length="10" precision="2"/>
+	</db-entity>
+	<db-entity name="lineitem">
+		<db-attribute name="itemid" type="VARCHAR" isMandatory="true" length="10"/>
+		<db-attribute name="linenum" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="orderid" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="quantity" type="INTEGER" isMandatory="true" length="4"/>
+		<db-attribute name="unitprice" type="NUMERIC" isMandatory="true" length="10" precision="2"/>
+	</db-entity>
+	<db-entity name="orders">
+		<db-attribute name="billaddr1" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="billaddr2" type="VARCHAR" length="80"/>
+		<db-attribute name="billcity" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="billcountry" type="VARCHAR" isMandatory="true" length="20"/>
+		<db-attribute name="billstate" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="billtofirstname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="billtolastname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="billzip" type="VARCHAR" isMandatory="true" length="20"/>
+		<db-attribute name="cardtype" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="courier" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="creditcard" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="exprdate" type="VARCHAR" isMandatory="true" length="7"/>
+		<db-attribute name="locale" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="orderdate" type="DATE" isMandatory="true" length="4"/>
+		<db-attribute name="orderid" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="shipaddr1" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="shipaddr2" type="VARCHAR" length="80"/>
+		<db-attribute name="shipcity" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="shipcountry" type="VARCHAR" isMandatory="true" length="20"/>
+		<db-attribute name="shipstate" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="shiptofirstname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="shiptolastname" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="shipzip" type="VARCHAR" isMandatory="true" length="20"/>
+		<db-attribute name="totalprice" type="NUMERIC" isMandatory="true" length="10" precision="2"/>
+		<db-attribute name="userid" type="VARCHAR" isMandatory="true" length="80"/>
+	</db-entity>
+	<db-entity name="orderstatus">
+		<db-attribute name="linenum" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="orderid" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="status" type="VARCHAR" isMandatory="true" length="2"/>
+		<db-attribute name="timestamp" type="DATE" isMandatory="true" length="4"/>
+	</db-entity>
+	<db-entity name="product">
+		<db-attribute name="category" type="VARCHAR" isMandatory="true" length="10"/>
+		<db-attribute name="descn" type="VARCHAR" length="255"/>
+		<db-attribute name="name" type="VARCHAR" length="80"/>
+		<db-attribute name="productid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="10"/>
+	</db-entity>
+	<db-entity name="profile">
+		<db-attribute name="banneropt" type="BIT" length="1"/>
+		<db-attribute name="favcategory" type="VARCHAR" length="30"/>
+		<db-attribute name="langpref" type="VARCHAR" isMandatory="true" length="80"/>
+		<db-attribute name="mylistopt" type="BIT" length="1"/>
+		<db-attribute name="userid" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="80"/>
+	</db-entity>
+	<db-entity name="signon">
+		<db-attribute name="password" type="VARCHAR" isMandatory="true" length="25"/>
+		<db-attribute name="username" type="VARCHAR" isPrimaryKey="true" isMandatory="true" length="25"/>
+	</db-entity>
+	<db-entity name="supplier">
+		<db-attribute name="addr1" type="VARCHAR" length="80"/>
+		<db-attribute name="addr2" type="VARCHAR" length="80"/>
+		<db-attribute name="city" type="VARCHAR" length="80"/>
+		<db-attribute name="name" type="VARCHAR" length="80"/>
+		<db-attribute name="phone" type="VARCHAR" length="80"/>
+		<db-attribute name="state" type="VARCHAR" length="80"/>
+		<db-attribute name="status" type="VARCHAR" isMandatory="true" length="2"/>
+		<db-attribute name="suppid" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="4"/>
+		<db-attribute name="zip" type="VARCHAR" length="5"/>
+	</db-entity>
+	<obj-entity name="Account" className="org.objectstyle.petstore.domain.Account" dbEntityName="account">
+		<obj-attribute name="address1" type="java.lang.String" db-attribute-path="addr1"/>
+		<obj-attribute name="address2" type="java.lang.String" db-attribute-path="addr2"/>
+		<obj-attribute name="city" type="java.lang.String" db-attribute-path="city"/>
+		<obj-attribute name="country" type="java.lang.String" db-attribute-path="country"/>
+		<obj-attribute name="email" type="java.lang.String" db-attribute-path="email"/>
+		<obj-attribute name="firstName" type="java.lang.String" db-attribute-path="firstname"/>
+		<obj-attribute name="lastName" type="java.lang.String" db-attribute-path="lastname"/>
+		<obj-attribute name="phone" type="java.lang.String" db-attribute-path="phone"/>
+		<obj-attribute name="state" type="java.lang.String" db-attribute-path="state"/>
+		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
+		<obj-attribute name="userName" type="java.lang.String" db-attribute-path="userid"/>
+		<obj-attribute name="zip" type="java.lang.String" db-attribute-path="zip"/>
+	</obj-entity>
+	<obj-entity name="BannerData" className="org.objectstyle.petstore.domain.BannerData" dbEntityName="bannerdata">
+		<obj-attribute name="bannerName" type="java.lang.String" db-attribute-path="bannername"/>
+	</obj-entity>
+	<obj-entity name="Category" className="org.objectstyle.petstore.domain.Category" dbEntityName="category">
+		<obj-attribute name="description" type="java.lang.String" db-attribute-path="descn"/>
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="name"/>
+	</obj-entity>
+	<obj-entity name="Inventory" className="org.objectstyle.petstore.domain.Inventory" dbEntityName="inventory">
+		<obj-attribute name="quantity" type="java.lang.Integer" db-attribute-path="qty"/>
+	</obj-entity>
+	<obj-entity name="Item" className="org.objectstyle.petstore.domain.Item" dbEntityName="item">
+		<obj-attribute name="attribute1" type="java.lang.String" db-attribute-path="attr1"/>
+		<obj-attribute name="attribute2" type="java.lang.String" db-attribute-path="attr2"/>
+		<obj-attribute name="attribute3" type="java.lang.String" db-attribute-path="attr3"/>
+		<obj-attribute name="attribute4" type="java.lang.String" db-attribute-path="attr4"/>
+		<obj-attribute name="attribute5" type="java.lang.String" db-attribute-path="attr5"/>
+		<obj-attribute name="listPrice" type="java.math.BigDecimal" db-attribute-path="listprice"/>
+		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
+		<obj-attribute name="unitCost" type="java.math.BigDecimal" db-attribute-path="unitcost"/>
+	</obj-entity>
+	<obj-entity name="LineItem" className="org.objectstyle.petstore.domain.LineItem" dbEntityName="lineitem">
+		<obj-attribute name="quantity" type="java.lang.Integer" db-attribute-path="quantity"/>
+		<obj-attribute name="unitPrice" type="java.math.BigDecimal" db-attribute-path="unitprice"/>
+	</obj-entity>
+	<obj-entity name="Order" className="org.objectstyle.petstore.domain.Order" dbEntityName="orders">
+		<obj-attribute name="billAddress1" type="java.lang.String" db-attribute-path="billaddr1"/>
+		<obj-attribute name="billAddress2" type="java.lang.String" db-attribute-path="billaddr2"/>
+		<obj-attribute name="billCity" type="java.lang.String" db-attribute-path="billcity"/>
+		<obj-attribute name="billCountry" type="java.lang.String" db-attribute-path="billcountry"/>
+		<obj-attribute name="billState" type="java.lang.String" db-attribute-path="billstate"/>
+		<obj-attribute name="billToFirstName" type="java.lang.String" db-attribute-path="billtofirstname"/>
+		<obj-attribute name="billToLastName" type="java.lang.String" db-attribute-path="billtolastname"/>
+		<obj-attribute name="billZip" type="java.lang.String" db-attribute-path="billzip"/>
+		<obj-attribute name="cardType" type="java.lang.String" db-attribute-path="cardtype"/>
+		<obj-attribute name="courier" type="java.lang.String" db-attribute-path="courier"/>
+		<obj-attribute name="creditCard" type="java.lang.String" db-attribute-path="creditcard"/>
+		<obj-attribute name="expiryDate" type="java.lang.String" db-attribute-path="exprdate"/>
+		<obj-attribute name="locale" type="java.lang.String" db-attribute-path="locale"/>
+		<obj-attribute name="orderDate" type="java.util.Date" db-attribute-path="orderdate"/>
+		<obj-attribute name="shipAddress1" type="java.lang.String" db-attribute-path="shipaddr1"/>
+		<obj-attribute name="shipAddress2" type="java.lang.String" db-attribute-path="shipaddr2"/>
+		<obj-attribute name="shipCity" type="java.lang.String" db-attribute-path="shipcity"/>
+		<obj-attribute name="shipCountry" type="java.lang.String" db-attribute-path="shipcountry"/>
+		<obj-attribute name="shipState" type="java.lang.String" db-attribute-path="shipstate"/>
+		<obj-attribute name="shipToFirstName" type="java.lang.String" db-attribute-path="shiptofirstname"/>
+		<obj-attribute name="shipToLastName" type="java.lang.String" db-attribute-path="shiptolastname"/>
+		<obj-attribute name="shipZip" type="java.lang.String" db-attribute-path="shipzip"/>
+		<obj-attribute name="totalPrice" type="java.math.BigDecimal" db-attribute-path="totalprice"/>
+	</obj-entity>
+	<obj-entity name="OrderStatus" className="org.objectstyle.petstore.domain.OrderStatus" dbEntityName="orderstatus">
+		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
+		<obj-attribute name="timestamp" type="java.util.Date" db-attribute-path="timestamp"/>
+	</obj-entity>
+	<obj-entity name="Product" className="org.objectstyle.petstore.domain.Product" dbEntityName="product">
+		<obj-attribute name="categoryName" type="java.lang.String" db-attribute-path="category"/>
+		<obj-attribute name="description" type="java.lang.String" db-attribute-path="descn"/>
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="name"/>
+	</obj-entity>
+	<obj-entity name="Profile" className="org.objectstyle.petstore.domain.Profile" dbEntityName="profile">
+		<obj-attribute name="bannerOption" type="java.lang.Boolean" db-attribute-path="banneropt"/>
+		<obj-attribute name="languagePreference" type="java.lang.String" db-attribute-path="langpref"/>
+		<obj-attribute name="listOption" type="java.lang.Boolean" db-attribute-path="mylistopt"/>
+	</obj-entity>
+	<obj-entity name="Supplier" className="org.objectstyle.petstore.domain.Supplier" dbEntityName="supplier">
+		<obj-attribute name="address1" type="java.lang.String" db-attribute-path="addr1"/>
+		<obj-attribute name="address2" type="java.lang.String" db-attribute-path="addr2"/>
+		<obj-attribute name="city" type="java.lang.String" db-attribute-path="city"/>
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="name"/>
+		<obj-attribute name="phone" type="java.lang.String" db-attribute-path="phone"/>
+		<obj-attribute name="state" type="java.lang.String" db-attribute-path="state"/>
+		<obj-attribute name="status" type="java.lang.String" db-attribute-path="status"/>
+		<obj-attribute name="zip" type="java.lang.String" db-attribute-path="zip"/>
+	</obj-entity>
+	<obj-entity name="User" className="org.objectstyle.petstore.domain.User" dbEntityName="signon">
+		<obj-attribute name="password" type="java.lang.String" db-attribute-path="password"/>
+	</obj-entity>
+	<db-relationship name="orders" source="account" target="orders" toMany="true">
+		<db-attribute-pair source="userid" target="userid"/>
+	</db-relationship>
+	<db-relationship name="profile" source="account" target="profile" toDependentPK="true" toMany="false">
+		<db-attribute-pair source="userid" target="userid"/>
+	</db-relationship>
+	<db-relationship name="user" source="account" target="signon" toDependentPK="true" toMany="false">
+		<db-attribute-pair source="userid" target="username"/>
+	</db-relationship>
+	<db-relationship name="category" source="bannerdata" target="category" toMany="false">
+		<db-attribute-pair source="favcategory" target="catid"/>
+	</db-relationship>
+	<db-relationship name="banner" source="category" target="bannerdata" toDependentPK="true" toMany="false">
+		<db-attribute-pair source="catid" target="favcategory"/>
+	</db-relationship>
+	<db-relationship name="products" source="category" target="product" toMany="true">
+		<db-attribute-pair source="catid" target="category"/>
+	</db-relationship>
+	<db-relationship name="profiles" source="category" target="profile" toMany="true">
+		<db-attribute-pair source="catid" target="favcategory"/>
+	</db-relationship>
+	<db-relationship name="item" source="inventory" target="item" toMany="false">
+		<db-attribute-pair source="itemid" target="itemid"/>
+	</db-relationship>
+	<db-relationship name="inventory" source="item" target="inventory" toDependentPK="true" toMany="false">
+		<db-attribute-pair source="itemid" target="itemid"/>
+	</db-relationship>
+	<db-relationship name="lineItems" source="item" target="lineitem" toMany="true">
+		<db-attribute-pair source="itemid" target="itemid"/>
+	</db-relationship>
+	<db-relationship name="product" source="item" target="product" toMany="false">
+		<db-attribute-pair source="productid" target="productid"/>
+	</db-relationship>
+	<db-relationship name="toSupplier" source="item" target="supplier" toMany="false">
+		<db-attribute-pair source="supplier" target="suppid"/>
+	</db-relationship>
+	<db-relationship name="item" source="lineitem" target="item" toMany="false">
+		<db-attribute-pair source="itemid" target="itemid"/>
+	</db-relationship>
+	<db-relationship name="order" source="lineitem" target="orders" toMany="false">
+		<db-attribute-pair source="orderid" target="orderid"/>
+	</db-relationship>
+	<db-relationship name="status" source="lineitem" target="orderstatus" toDependentPK="true" toMany="false">
+		<db-attribute-pair source="linenum" target="linenum"/>
+		<db-attribute-pair source="orderid" target="orderid"/>
+	</db-relationship>
+	<db-relationship name="account" source="orders" target="account" toMany="false">
+		<db-attribute-pair source="userid" target="userid"/>
+	</db-relationship>
+	<db-relationship name="lineItems" source="orders" target="lineitem" toDependentPK="true" toMany="true">
+		<db-attribute-pair source="orderid" target="orderid"/>
+	</db-relationship>
+	<db-relationship name="lineItem" source="orderstatus" target="lineitem" toMany="false">
+		<db-attribute-pair source="linenum" target="linenum"/>
+		<db-attribute-pair source="orderid" target="orderid"/>
+	</db-relationship>
+	<db-relationship name="items" source="product" target="item" toMany="true">
+		<db-attribute-pair source="productid" target="productid"/>
+	</db-relationship>
+	<db-relationship name="toCategory" source="product" target="category" toMany="false">
+		<db-attribute-pair source="category" target="catid"/>
+	</db-relationship>
+	<db-relationship name="account" source="profile" target="account" toMany="false">
+		<db-attribute-pair source="userid" target="userid"/>
+	</db-relationship>
+	<db-relationship name="category" source="profile" target="category" toMany="false">
+		<db-attribute-pair source="favcategory" target="catid"/>
+	</db-relationship>
+	<db-relationship name="account" source="signon" target="account" toMany="false">
+		<db-attribute-pair source="username" target="userid"/>
+	</db-relationship>
+	<db-relationship name="items" source="supplier" target="item" toMany="true">
+		<db-attribute-pair source="suppid" target="supplier"/>
+	</db-relationship>
+	<obj-relationship name="orders" source="Account" target="Order" db-relationship-path="orders"/>
+	<obj-relationship name="profile" source="Account" target="Profile" db-relationship-path="profile"/>
+	<obj-relationship name="user" source="Account" target="User" db-relationship-path="user"/>
+	<obj-relationship name="category" source="BannerData" target="Category" db-relationship-path="category"/>
+	<obj-relationship name="banner" source="Category" target="BannerData" db-relationship-path="banner"/>
+	<obj-relationship name="products" source="Category" target="Product" db-relationship-path="products"/>
+	<obj-relationship name="profiles" source="Category" target="Profile" db-relationship-path="profiles"/>
+	<obj-relationship name="item" source="Inventory" target="Item" db-relationship-path="item"/>
+	<obj-relationship name="inventory" source="Item" target="Inventory" db-relationship-path="inventory"/>
+	<obj-relationship name="lineItems" source="Item" target="LineItem" db-relationship-path="lineItems"/>
+	<obj-relationship name="product" source="Item" target="Product" db-relationship-path="product"/>
+	<obj-relationship name="supplier" source="Item" target="Supplier" db-relationship-path="toSupplier"/>
+	<obj-relationship name="item" source="LineItem" target="Item" db-relationship-path="item"/>
+	<obj-relationship name="order" source="LineItem" target="Order" db-relationship-path="order"/>
+	<obj-relationship name="status" source="LineItem" target="OrderStatus" db-relationship-path="status"/>
+	<obj-relationship name="account" source="Order" target="Account" db-relationship-path="account"/>
+	<obj-relationship name="lineItems" source="Order" target="LineItem" db-relationship-path="lineItems"/>
+	<obj-relationship name="lineItem" source="OrderStatus" target="LineItem" db-relationship-path="lineItem"/>
+	<obj-relationship name="category" source="Product" target="Category" db-relationship-path="toCategory"/>
+	<obj-relationship name="items" source="Product" target="Item" db-relationship-path="items"/>
+	<obj-relationship name="account" source="Profile" target="Account" db-relationship-path="account"/>
+	<obj-relationship name="category" source="Profile" target="Category" db-relationship-path="category"/>
+	<obj-relationship name="items" source="Supplier" target="Item" db-relationship-path="items"/>
+	<obj-relationship name="account" source="User" target="Account" db-relationship-path="account"/>
+	<query name="getAccount" factory="org.objectstyle.cayenne.map.SelectQueryBuilder" root="obj-entity" root-name="Account">
+		<qualifier><![CDATA[(userName = $userName) and (user.password = $password)]]></qualifier>
+	</query>
+	<query name="getCategories" factory="org.objectstyle.cayenne.map.SelectQueryBuilder" root="obj-entity" root-name="Category">
+		<property name="cayenne.GenericSelectQuery.refreshingObjects" value="false"/>
+		<property name="cayenne.GenericSelectQuery.cachePolicy" value="sharedcache"/>
+		<ordering><![CDATA[name]]></ordering>
+	</query>
+	<query name="getInventoryQuantity" factory="org.objectstyle.cayenne.map.SQLTemplateBuilder" root="data-map" root-name="petstore">
+		<property name="cayenne.GenericSelectQuery.refreshingObjects" value="false"/>
+		<property name="cayenne.GenericSelectQuery.fetchingDataRows" value="true"/>
+		<property name="cayenne.GenericSelectQuery.fetchLimit" value="1"/>
+		<sql><![CDATA[select qty as quantity from inventory where itemid = #bind($itemId)]]></sql>
+	</query>
+	<query name="schemaCheck" factory="org.objectstyle.cayenne.map.SQLTemplateBuilder" root="data-map" root-name="petstore">
+		<property name="cayenne.GenericSelectQuery.refreshingObjects" value="false"/>
+		<property name="cayenne.GenericSelectQuery.fetchingDataRows" value="true"/>
+		<property name="cayenne.GenericSelectQuery.fetchLimit" value="1"/>
+		<sql><![CDATA[select count(*) from account]]></sql>
+	</query>
+</data-map>

Added: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/struts-config.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/struts-config.xml?rev=419093&view=auto
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/struts-config.xml (added)
+++ incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/struts-config.xml Tue Jul  4 13:47:09 2006
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE struts-config PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
+    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
+
+<struts-config>
+
+  <form-beans>
+    <form-bean name="accountBean" type="org.objectstyle.petstore.presentation.AccountBean"/>
+    <form-bean name="catalogBean" type="org.objectstyle.petstore.presentation.CatalogBean"/>
+    <form-bean name="cartBean" type="org.objectstyle.petstore.presentation.CartBean"/>
+    <form-bean name="orderBean" type="org.objectstyle.petstore.presentation.OrderBean"/>
+  </form-beans>
+
+  <global-exceptions>
+    <exception key="errors.general" type="java.lang.Exception" path="/common/Error.jsp"/>
+  </global-exceptions>
+
+  <global-forwards>
+    <forward name="failure" path="/common/Error.jsp"/>
+    <forward name="error" path="/common/Error.jsp"/>
+    <forward name="signon" path="/account/SignonForm.jsp"/>
+    <forward name="newOrderForm" path="/shop/newOrderForm.shtml"/>
+  </global-forwards>
+
+  <action-mappings>
+
+    <action path="/shop/index" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" parameter="*" validate="false">
+      <forward name="success" path="/catalog/Main.jsp"/>
+    </action>
+
+    <!-- CATALOG ACTIONS -->
+
+    <action path="/shop/searchProducts" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false">
+      <forward name="success" path="/catalog/SearchProducts.jsp"/>
+    </action>
+
+    <action path="/shop/switchSearchListPage" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session" parameter="switchProductListPage"
+            validate="false">
+      <forward name="success" path="/catalog/SearchProducts.jsp"/>
+    </action>
+
+    <action path="/shop/viewCategory" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false">
+      <forward name="success" path="/catalog/Category.jsp"/>
+    </action>
+
+    <action path="/shop/switchProductListPage" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false">
+      <forward name="success" path="/catalog/Category.jsp"/>
+    </action>
+
+    <action path="/shop/viewProduct" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false">
+      <forward name="success" path="/catalog/Product.jsp"/>
+    </action>
+
+    <action path="/shop/switchItemListPage" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false">
+      <forward name="success" path="/catalog/Product.jsp"/>
+    </action>
+
+    <action path="/shop/viewItem" type="org.apache.struts.beanaction.BeanAction"
+            name="catalogBean" scope="session"
+            validate="false" input="/catalog/Product.jsp">
+      <forward name="success" path="/catalog/Item.jsp"/>
+    </action>
+
+    <!-- CART ACTIONS -->
+
+    <action path="/shop/addItemToCart" type="org.apache.struts.beanaction.BeanAction"
+            name="cartBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <action path="/shop/removeItemFromCart" type="org.apache.struts.beanaction.BeanAction"
+            name="cartBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <action path="/shop/updateCartQuantities" type="org.apache.struts.beanaction.BeanAction"
+            name="cartBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <action path="/shop/checkout" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session" parameter="newOrderForm"
+            validate="false" >
+      <forward name="success" path="/cart/Checkout.jsp"/>
+    </action>
+
+    <action path="/shop/viewCart" type="org.apache.struts.beanaction.BeanAction"
+            name="cartBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <action path="/shop/switchCartPage" type="org.apache.struts.beanaction.BeanAction"
+            name="cartBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <action path="/shop/switchMyListPage" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="false">
+      <forward name="success" path="/cart/Cart.jsp"/>
+    </action>
+
+    <!-- ACCOUNT ACTIONS -->
+
+    <action path="/shop/newAccountForm" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session" parameter="*"
+            validate="false">
+      <forward name="success" path="/account/NewAccountForm.jsp"/>
+    </action>
+
+    <action path="/shop/newAccount" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="true" input="/account/NewAccountForm.jsp">
+      <forward name="success" path="/shop/index.shtml"/>
+    </action>
+
+    <action path="/shop/editAccountForm" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="false">
+      <forward name="success" path="/account/EditAccountForm.jsp"/>
+    </action>
+
+    <action path="/shop/editAccount" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="true" input="/account/EditAccountForm.jsp">
+      <forward name="success" path="/shop/index.shtml"/>
+    </action>
+
+    <action path="/shop/signonForm" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session" parameter="*"
+            validate="false">
+      <forward name="success" path="/account/SignonForm.jsp"/>
+    </action>
+
+    <action path="/shop/signon" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="false">
+      <forward name="success" path="/shop/index.shtml"/>
+    </action>
+
+    <action path="/shop/signoff" type="org.apache.struts.beanaction.BeanAction"
+            name="accountBean" scope="session"
+            validate="false">
+      <forward name="success" path="/shop/index.shtml"/>
+    </action>
+
+    <!-- ORDER ACTIONS -->
+
+    <action path="/shop/newOrderForm" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session"
+            validate="false">
+      <forward name="success" path="/order/NewOrderForm.jsp"/>
+    </action>
+
+    <action path="/shop/newOrder" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session"
+            validate="true" input="/order/NewOrderForm.jsp">
+      <forward name="confirm" path="/order/ConfirmOrder.jsp"/>
+      <forward name="shipping" path="/order/ShippingForm.jsp"/>
+      <forward name="success" path="/order/ViewOrder.jsp"/>
+    </action>
+
+    <action path="/shop/listOrders" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session"
+            validate="false">
+      <forward name="success" path="/order/ListOrders.jsp"/>
+    </action>
+
+    <action path="/shop/switchOrderPage" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session"
+            validate="false">
+      <forward name="success" path="/order/ListOrders.jsp"/>
+    </action>
+
+    <action path="/shop/viewOrder" type="org.apache.struts.beanaction.BeanAction"
+            name="orderBean" scope="session"
+            validate="false">
+      <forward name="success" path="/order/ViewOrder.jsp"/>
+    </action>
+
+  </action-mappings>
+
+  <message-resources parameter="properties.messages"/>
+
+  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
+    <set-property
+        property="pathnames"
+        value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
+  </plug-in>
+
+</struts-config>

Propchange: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/struts-config.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/tld/struts-bean.tld
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/tld/struts-bean.tld?rev=419093&view=auto
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/tld/struts-bean.tld (added)
+++ incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/tld/struts-bean.tld Tue Jul  4 13:47:09 2006
@@ -0,0 +1,377 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
+<taglib>
+  <tlibversion>1.2</tlibversion>
+  <jspversion>1.1</jspversion>
+  <shortname>bean</shortname>
+  <uri>http://struts.apache.org/tags-bean</uri>
+  <tag>
+    <name>cookie</name>
+    <tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>multiple</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>value</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>define</name>
+    <tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
+    <bodycontent>JSP</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>property</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>scope</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>toScope</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>type</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>value</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>header</name>
+    <tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>multiple</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>value</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>include</name>
+    <tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>anchor</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>forward</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>href</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>page</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>transaction</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>message</name>
+    <tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>arg0</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>arg1</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>arg2</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>arg3</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>arg4</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>bundle</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>key</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>locale</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>property</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>scope</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>page</name>
+    <tagclass>org.apache.struts.taglib.bean.PageTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.PageTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>property</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>parameter</name>
+    <tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>multiple</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>value</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>resource</name>
+    <tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>input</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>size</name>
+    <tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>collection</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>property</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>scope</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>struts</name>
+    <tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass>
+    <teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>id</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>formBean</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>forward</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>mapping</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+  <tag>
+    <name>write</name>
+    <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
+    <bodycontent>empty</bodycontent>
+    <attribute>
+      <name>bundle</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>filter</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>format</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>formatKey</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>ignore</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>locale</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>property</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>scope</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+</taglib>
+
+
+

Propchange: incubator/cayenne/examples/trunk/cayenne-petstore/web/WEB-INF/tld/struts-bean.tld
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message