You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(81) |
Nov
|
Dec
|
---|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/WEB-INF Added Files: cayenne.xml datamap.xml driverinfo.xml struts-config.xml web.xml Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: cayenne.xml --- <?xml version="1.0" encoding="utf-8"?> <domains> <domain name="DefaultDomain"> <map name="datamap" location="datamap.xml"/> <node name="datanode" datasource="driverinfo.xml" adapter="org.objectstyle.cayenne.dba.mysql.MySQLAdapter" factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory"> <map-ref name="datamap"/> </node> </domain> </domains> --- NEW FILE: datamap.xml --- <?xml version="1.0" encoding="UTF-8"?> <data-map> <db-entity name="ARTIST"> <db-attribute name="ARTIST_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="ARTIST_NAME" type="CHAR" isMandatory="true" length="255"/> <db-attribute name="DATE_OF_BIRTH" type="DATE" length="8"/> </db-entity> <db-entity name="GALLERY"> <db-attribute name="GALLERY_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="GALLERY_NAME" type="VARCHAR" isMandatory="true" length="100"/> </db-entity> <db-entity name="PAINTING"> <db-attribute name="ARTIST_ID" type="INTEGER" length="11"/> <db-attribute name="ESTIMATED_PRICE" type="DECIMAL" length="10"/> <db-attribute name="GALLERY_ID" type="INTEGER" length="11"/> <db-attribute name="PAINTING_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="PAINTING_TITLE" type="VARCHAR" isMandatory="true" length="255"/> </db-entity> <obj-entity name="Artist" className="webtest.Artist" dbEntityName="ARTIST"> <obj-attribute name="artistName" type="java.lang.String" db-attribute-name="ARTIST_NAME"/> <obj-attribute name="dateOfBirth" type="java.sql.Date" db-attribute-name="DATE_OF_BIRTH"/> </obj-entity> <obj-entity name="Gallery" className="webtest.Gallery" dbEntityName="GALLERY"> <obj-attribute name="galleryName" type="java.lang.String" db-attribute-name="GALLERY_NAME"/> </obj-entity> <obj-entity name="Painting" className="webtest.Painting" dbEntityName="PAINTING"> <obj-attribute name="estimatedPrice" type="java.math.BigDecimal" db-attribute-name="ESTIMATED_PRICE"/> <obj-attribute name="paintingTitle" type="java.lang.String" db-attribute-name="PAINTING_TITLE"/> </obj-entity> <db-relationship name="paintingArray" source="ARTIST" target="PAINTING" toDependentPK="false" toMany="true"> <db-attribute-pair source="ARTIST_ID" target="ARTIST_ID"/> </db-relationship> <db-relationship name="paintingArray" source="GALLERY" target="PAINTING" toDependentPK="false" toMany="true"> <db-attribute-pair source="GALLERY_ID" target="GALLERY_ID"/> </db-relationship> <db-relationship name="toArtist" source="PAINTING" target="ARTIST" toDependentPK="false" toMany="false"> <db-attribute-pair source="ARTIST_ID" target="ARTIST_ID"/> </db-relationship> <db-relationship name="toGallery" source="PAINTING" target="GALLERY" toDependentPK="false" toMany="false"> <db-attribute-pair source="GALLERY_ID" target="GALLERY_ID"/> </db-relationship> <obj-relationship name="paintingArray" source="Artist" target="Painting" toMany="true"> <db-relationship-ref source="ARTIST" target="PAINTING" name="paintingArray"/> </obj-relationship> <obj-relationship name="paintingArray" source="Gallery" target="Painting" toMany="true"> <db-relationship-ref source="GALLERY" target="PAINTING" name="paintingArray"/> </obj-relationship> <obj-relationship name="toArtist" source="Painting" target="Artist" toMany="false"> <db-relationship-ref source="PAINTING" target="ARTIST" name="toArtist"/> </obj-relationship> <obj-relationship name="toGallery" source="Painting" target="Gallery" toMany="false"> <db-relationship-ref source="PAINTING" target="GALLERY" name="toGallery"/> </obj-relationship> </data-map> --- NEW FILE: driverinfo.xml --- <driver class="org.gjt.mm.mysql.Driver"> <url value="jdbc:mysql://localhost/cayenne"/> <connectionPool min="1" max="1" /> <login userName="dummy" password="dummy"/> </driver> --- NEW FILE: struts-config.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> <!-- This is a blank Struts configuration file based on the example application, with commented examples of some items. NOTE: If you have a generator tool to create the corresponding Java classes for you, you could include the details in the "form-bean" declarations. Otherwise, you would only define the "form-bean" element itself, with the corresponding "name" and "type" attributes, as shown here. --><struts-config> <!-- ========== Data Source Configuration =============================== --> <!-- <data-sources> <data-source autoCommit="false" description="Example Data Source Configuration" driverClass="org.postgresql.Driver" maxCount="4" minCount="2" password="mypassword" url="jdbc:postgresql://localhost/mydatabase" user="myusername" /> </data-sources> --> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="artistForm" type="formbean.ArtistForm" /> <form-bean name="paintingForm" type="formbean.PaintingForm" /> <form-bean name="galleryForm" type="formbean.GalleryForm" /> </form-beans> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> </global-forwards> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <action path="/browseArtists" type="action.ArtistPageAction"> <forward name="success" path="/artistBrowsePage.jsp" /> </action> <action path="/browseGalleries" type="action.GalleryPageAction"> <forward name="success" path="/galleryBrowsePage.jsp" /> </action> <action path="/addArtist" type="action.AddArtistAction" name="artistForm" scope="request" validate="false"> <forward name="success" path="/addArtistPage.jsp" redirect="false" /> </action> <action path="/addGallery" type="action.AddGalleryAction" scope="request" validate="false" name="galleryForm"> <forward name="success" path="/addGalleryPage.jsp" redirect="false" /> </action> <action path="/addPainting" type="action.AddPaintingAction" name="paintingForm" scope="request" validate="false"> <forward name="success" path="/addPaintingPage.jsp" redirect="false" /> </action> <action path="/saveArtist" type="action.SaveArtistAction" name="artistForm" scope="request" input="/addArtistPage.jsp"> <forward name="success" path="/browseArtists.do" /> </action> <action path="/saveGallery" type="action.SaveGalleryAction" name="galleryForm" scope="request" input="/galleryBrowsePage.jsp"> <forward name="success" path="/browseGalleries.do" /> </action> <action path="/savePainting" type="action.SavePaintingAction" name="paintingForm" scope="request" input="/artistDetailPage.jsp"> <forward name="success" path="/browseArtists.do" /> </action> <action path="/addPaintingToGallery" type="action.AddPaintingToGalleryAction"> <forward name="success" path="/chooseGalleryPage.jsp" /> </action> <action path="/choosePaintingForGallery" type="action.SubmitPaintingToGalleryAction"> <forward name="success" path="/browseArtists.do" /> </action> <action path="/removePaintingFromGallery" type="action.RemovePaintingFromGalleryAction"> <forward name="success" path="/browseGalleries.do" /> </action> <!-- Example logon action <action path="/logon" type="org.apache.struts.example.LogonAction" name="logonForm" scope="request" input="/logon.jsp"> </action> --> <!-- Example logoff action <action path="/logoff" type="org.apache.struts.example.LogoffAction"> <forward name="success" path="/index.jsp"/> </action> --> <!-- The standard administrative actions available with Struts --> <!-- These would be either omitted or protected by security --> <!-- in a real application deployment --> <!-- <action path="/admin/addFormBean" type="org.apache.struts.actions.AddFormBeanAction" /> <action path="/admin/addForward" type="org.apache.struts.actions.AddForwardAction" /> <action path="/admin/addMapping" type="org.apache.struts.actions.AddMappingAction" /> <action path="/admin/reload" type="org.apache.struts.actions.ReloadAction" /> <action path="/admin/removeFormBean" type="org.apache.struts.actions.RemoveFormBeanAction" /> <action path="/admin/removeForward" type="org.apache.struts.actions.RemoveForwardAction" /> <action path="/admin/removeMapping" type="org.apache.struts.actions.RemoveMappingAction" /> --> </action-mappings> <!-- ========== Message Resources Definitions =========================== --> <message-resources parameter="ApplicationResources" key="org.apache.struts.action.MESSAGE" /> <!-- ========== Plug Ins Configuration ================================== --> <!-- Add multiple validator resource files by setting the pathname property. Default pluggable validator definitions are contained in validator-rules.xml. Add any validation rules for forms in validator.xml. --> <!-- <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathname" value="/WEB-INF/validator-rules.xml"/> <set-property property="pathname" value="/WEB-INF/validator.xml"/> </plug-in> --> </struts-config> --- NEW FILE: web.xml --- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> <web-app> <!-- Configure ServletConfiguration to listen for container events. --> <listener> <listener-class>test.CustomConfiguration</listener-class> </listener> <!-- Standard Action Servlet Configuration (with debugging) --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> <!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- Example Application Tag Library Descriptor <taglib> <taglib-uri>/WEB-INF/app.tld</taglib-uri> <taglib-location>/WEB-INF/app.tld</taglib-location> </taglib> --> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri> <taglib-location>/WEB-INF/struts-nested.tld</taglib-location> </taglib> </web-app> |
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/action In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/WEB-INF/classes/action Added Files: AddArtistAction.java AddGalleryAction.java AddPaintingAction.java AddPaintingToGalleryAction.java ArtistPageAction.java GalleryPageAction.java RemovePaintingFromGalleryAction.java SaveArtistAction.java SaveGalleryAction.java SavePaintingAction.java SubmitPaintingToGalleryAction.java Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: AddArtistAction.java --- package action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import formbean.ArtistForm; public final class AddArtistAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { form = new ArtistForm(); request.setAttribute(mapping.getAttribute(), form); saveToken(request); return mapping.findForward("success"); } } --- NEW FILE: AddGalleryAction.java --- package action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import formbean.GalleryForm; public final class AddGalleryAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { form = new GalleryForm(); request.setAttribute(mapping.getAttribute(), form); saveToken(request); return mapping.findForward("success"); } } --- NEW FILE: AddPaintingAction.java --- package action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import formbean.PaintingForm; public final class AddPaintingAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { form = new PaintingForm(); ((PaintingForm) form).setArtistName(request.getParameter("name")); request.setAttribute(mapping.getAttribute(), form); saveToken(request); return mapping.findForward("success"); } } --- NEW FILE: AddPaintingToGalleryAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.exp.Expression; import org.objectstyle.cayenne.exp.ExpressionFactory; import org.objectstyle.cayenne.query.SelectQuery; import webtest.Painting; public final class AddPaintingToGalleryAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); String paintingTitle = request.getParameter("title"); Expression qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "paintingTitle", paintingTitle); SelectQuery query = new SelectQuery("Painting", qual); // set a relatively high logging level, // to show the query execution progress query.setLoggingLevel(Level.WARN); List paintings = ctxt.performQuery(query); Painting painting = (Painting) paintings.get(0); System.err.println("painting: " + painting); query = new SelectQuery("Gallery"); query.setLoggingLevel(Level.WARN); List galleries = ctxt.performQuery(query); request.setAttribute("painting", painting); request.setAttribute("galleries", galleries); return mapping.findForward("success"); } } --- NEW FILE: ArtistPageAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.query.Ordering; import org.objectstyle.cayenne.query.SelectQuery; public final class ArtistPageAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); SelectQuery query = new SelectQuery("Artist"); Ordering ordering = new Ordering("artistName", Ordering.ASC); query.addOrdering(ordering); // set a relatively high logging level, // to show the query execution progress query.setLoggingLevel(Level.WARN); List artists = ctxt.performQuery(query); System.out.println("artists: " + artists); request.setAttribute("artists", artists); return mapping.findForward("success"); } } --- NEW FILE: GalleryPageAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.query.SelectQuery; public final class GalleryPageAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); SelectQuery query = new SelectQuery("Gallery"); // set a relatively high logging level, // to show the query execution progress query.setLoggingLevel(Level.WARN); List galleries = ctxt.performQuery(query); request.setAttribute("galleries", galleries); return mapping.findForward("success"); } } --- NEW FILE: RemovePaintingFromGalleryAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.exp.Expression; import org.objectstyle.cayenne.exp.ExpressionFactory; import org.objectstyle.cayenne.query.SelectQuery; import webtest.Gallery; import webtest.Painting; public final class RemovePaintingFromGalleryAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); String paintingTitle = request.getParameter("title"); String galleryName = request.getParameter("galleryName"); Expression qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "paintingTitle", paintingTitle); SelectQuery query = new SelectQuery("Painting", qual); // set a relatively high logging level, // to show the query execution progress query.setLoggingLevel(Level.WARN); List paintings = ctxt.performQuery(query); Painting painting = (Painting) paintings.get(0); System.err.println("painting: " + painting); qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "galleryName", galleryName); query = new SelectQuery("Gallery", qual); query.setLoggingLevel(Level.WARN); List galleries = ctxt.performQuery(query); Gallery gallery = (Gallery) galleries.get(0); gallery.removeFromPaintingArray(painting); // commit to the database // use a relatively high logging level, // to show the query execution progress ctxt.commitChanges(Level.WARN); return mapping.findForward("success"); } } --- NEW FILE: SaveArtistAction.java --- package action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import webtest.Artist; import formbean.ArtistForm; public final class SaveArtistAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { System.err.println("****Inside SaveArtistAction.execute()"); ArtistForm artistForm = (ArtistForm) form; // Validate the user form information ActionErrors errors = new ActionErrors(); errors = artistForm.validate(mapping, request); // Report any errors we have discovered back to the original form if (!errors.empty()) { saveErrors(request, errors); saveToken(request); return (new ActionForward(mapping.getInput())); } DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); Artist anArtist = (Artist) ctxt.createAndRegisterNewObject("Artist"); anArtist.setArtistName(artistForm.getArtistName()); anArtist.setDateOfBirth(new java.sql.Date(System.currentTimeMillis())); // commit to the database // using log level of WARN to show the query execution ctxt.commitChanges(Level.WARN); return (mapping.findForward("success")); } } --- NEW FILE: SaveGalleryAction.java --- package action; import org.apache.log4j.Level; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.*; import webtest.Gallery; import org.objectstyle.cayenne.access.DataContext; import formbean.*; public final class SaveGalleryAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext)request.getSession().getAttribute("context"); GalleryForm galleryForm = (GalleryForm) form; Gallery aGallery = (Gallery)ctxt.createAndRegisterNewObject("Gallery"); aGallery.setGalleryName(galleryForm.getGalleryName()); // commit to the database ctxt.commitChanges(Level.WARN); return (mapping.findForward("success")); } } --- NEW FILE: SavePaintingAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.exp.Expression; import org.objectstyle.cayenne.exp.ExpressionFactory; import org.objectstyle.cayenne.query.SelectQuery; import webtest.Artist; import webtest.Painting; import formbean.PaintingForm; public final class SavePaintingAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { PaintingForm paintingForm = (PaintingForm) form; DataContext ctxt = (DataContext)request.getSession().getAttribute("context"); String anArtistName = paintingForm.getArtistName(); Expression qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "artistName", anArtistName); SelectQuery query = new SelectQuery("Artist", qual); // using log level of WARN to show the query execution query.setLoggingLevel(Level.WARN); List artists = ctxt.performQuery(query); System.err.println("artists: " + artists); Artist artist = (Artist)artists.get(0); Painting aPainting = (Painting)ctxt.createAndRegisterNewObject("Painting"); aPainting.setPaintingTitle(paintingForm.getPaintingTitle()); aPainting.setEstimatedPrice(paintingForm.getEstimatedPrice()); artist.addToPaintingArray(aPainting); // commit to the database // using log level of WARN to show the query execution ctxt.commitChanges(Level.WARN); return (mapping.findForward("success")); } } --- NEW FILE: SubmitPaintingToGalleryAction.java --- package action; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Level; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.exp.Expression; import org.objectstyle.cayenne.exp.ExpressionFactory; import org.objectstyle.cayenne.query.SelectQuery; import webtest.Gallery; import webtest.Painting; public final class SubmitPaintingToGalleryAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DataContext ctxt = (DataContext) request.getSession().getAttribute("context"); String paintingTitle = request.getParameter("title"); String galleryName = request.getParameter("galleryName"); Expression qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "paintingTitle", paintingTitle); SelectQuery query = new SelectQuery("Painting", qual); // using log level of WARN to show the query execution query.setLoggingLevel(Level.WARN); List paintings = ctxt.performQuery(query); Painting painting = (Painting) paintings.get(0); System.err.println("painting: " + painting); qual = ExpressionFactory.binaryPathExp( Expression.EQUAL_TO, "galleryName", galleryName); query = new SelectQuery("Gallery", qual); // using log level of WARN to show the query execution query.setLoggingLevel(Level.WARN); List galleries = ctxt.performQuery(query); Gallery gallery = (Gallery) galleries.get(0); gallery.addToPaintingArray(painting); // commit to the database // using log level of WARN to show the query execution ctxt.commitChanges(Level.WARN); return (mapping.findForward("success")); } } |
From: <me...@us...> - 2002-10-01 05:12:30
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/formbean In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/WEB-INF/classes/formbean Added Files: ArtistForm.java GalleryForm.java PaintingForm.java Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: ArtistForm.java --- package formbean; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; public final class ArtistForm extends ActionForm { private String artistName = null; private String dateOfBirth = null; public void setArtistName(String value) { artistName = value; } public String getArtistName() { return artistName; } public void setDateOfBirth(String value) { dateOfBirth = value; } public String getDateOfBirth() { return dateOfBirth; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.artistName = null; this.dateOfBirth = null; } /** * Validate the properties that have been set from this HTTP request, * and return an <code>ActionErrors</code> object that encapsulates any * validation errors that have been found. If no errors are found, return * <code>null</code> or an <code>ActionErrors</code> object with no * recorded error messages. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { System.err.println("****Inside ArtistForm.validate()"); ActionErrors errors = new ActionErrors(); if ((artistName == null) || (artistName.length() < 1)) errors.add("artistName", new ActionError("error.artistname.required")); if (dateOfBirth == null) errors.add("dateOfBirth", new ActionError("No date of birth provided")); return errors; } } --- NEW FILE: GalleryForm.java --- package formbean; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; public final class GalleryForm extends ActionForm { private String galleryName = null; public void setGalleryName(String value) { galleryName = value; } public String getGalleryName() { return galleryName; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.galleryName = null; } /** * Validate the properties that have been set from this HTTP request, * and return an <code>ActionErrors</code> object that encapsulates any * validation errors that have been found. If no errors are found, return * <code>null</code> or an <code>ActionErrors</code> object with no * recorded error messages. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((galleryName == null) || (galleryName.length() < 1)) errors.add( "galleryName", new ActionError("error.galleryname.required")); return errors; } } --- NEW FILE: PaintingForm.java --- package formbean; import java.math.BigDecimal; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; public final class PaintingForm extends ActionForm { private String paintingTitle = null; private BigDecimal estimatedPrice = null; private String artistName = null; public void setEstimatedPrice(BigDecimal value) { estimatedPrice = value; } public BigDecimal getEstimatedPrice() { return estimatedPrice; } public void setPaintingTitle(String value) { paintingTitle = value; } public String getPaintingTitle() { return paintingTitle; } public void setArtistName(String value) { artistName = value; } public String getArtistName() { return artistName; } /** * Reset all properties to their default values. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.estimatedPrice = null; this.paintingTitle = null; this.artistName = null; } /** * Validate the properties that have been set from this HTTP request, * and return an <code>ActionErrors</code> object that encapsulates any * validation errors that have been found. If no errors are found, return * <code>null</code> or an <code>ActionErrors</code> object with no * recorded error messages. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((paintingTitle == null) || (paintingTitle.length() < 1)) errors.add("paintingTitle", new ActionError("error.paintingtitle.required")); return errors; } } |
From: <me...@us...> - 2002-10-01 05:12:30
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/WEB-INF/classes Added Files: ApplicationResources.properties Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: ApplicationResources.properties --- index.title=Cayenne Web Application Example index.heading=Welcome to the Cayenne Web Application Example! index.message=This application uses the Cayenne object-relational framework that allows you to create, retrieve, update, and delete records without writing a line of SQL. error.artistname.required=<li>The artist name is required</li> error.paintingtitle.required=<li>The painting title is required</li> error.galleryname.required=<li>The gallery name is required</li> button.addartist=add artist button.addpainting=add painting button.addgallery=add gallery |
From: <me...@us...> - 2002-10-01 05:12:29
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/META-INF In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/META-INF Added Files: MANIFEST.MF Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: MANIFEST.MF --- Manifest-Version: 1.0 Created-By: Ant 1.4.1 |
From: <me...@us...> - 2002-10-01 05:12:29
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app Added Files: addArtistPage.jsp addGalleryPage.jsp addPaintingPage.jsp artistBrowsePage.jsp artistDetailPage.jsp build.xml chooseGalleryPage.jsp galleryBrowsePage.jsp index.jsp navi.html styles.css tutorialdb.sql Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: addArtistPage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <html:form action="/saveArtist"> <table width="640" class="standardTable" border="1"> <tr> <td colspan="2" bgcolor="silver"><span class="titleTextStrong">Add an Artist</span></td> </tr> <tr> <td align="right">Artist Name: </td> <td><html:text property="artistName" size="50"/></td> </tr> <tr> <td align="right">Date of Birth: </td> <td><html:text property="dateOfBirth" size="10" maxlength="10" /></td> </tr> <tr> <td colspan="2" align="center"><html:submit><bean:message key="button.addartist"/></html:submit></td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: addGalleryPage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <html:form action="/saveGallery"> <table width="640" class="standardTable" border="1"> <tr> <td colspan="2" bgcolor="silver"><span class="titleTextStrong">Add a Gallery</span></td> </tr> <tr> <td align="right">Gallery Name: </td> <td><html:text property="galleryName" size="40" maxlength="40"/></td> </tr> <tr> <td colspan="2" align="center"><html:submit>Add Gallery</html:submit></td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: addPaintingPage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <html:form action="/savePainting"> <html:hidden property="artistName"/> <table width="640" class="standardTable" border="1"> <tr> <td colspan="2" bgcolor="silver"><span class="titleTextStrong">Add a Painting</span></td> </tr> <tr> <td align="right">Painting Title: </td> <td><html:text property="paintingTitle" size="50"/></td> </tr> <tr> <td align="right">Estimated Price: </td> <td><html:text property="estimatedPrice" size="10"/></td> </tr> <tr> <td colspan="2" align="center"><html:submit><bean:message key="button.addpainting"/></html:submit></td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: artistBrowsePage.jsp --- <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <br><br> <span class="titleTextStrong">Artist Browse Page</span><br><br> <table width="100%" class="standardTable" border="0" cellspacing="0"> <logic:iterate id="anArtist" name="artists"> <tr bgcolor="silver"> <td colspan="2"><b>Artist Details:</b></td> <td align="right"><a href="addPainting.do?name=<bean:write name="anArtist" property="artistName"/>">add painting</a></td> </tr> <tr> <td width="125"><bean:write name="anArtist" property="artistName"/> </td> <td><b>Paintings:</b></td> <td align="right"><b>DOB:</b> <bean:write name="anArtist" property="dateOfBirth"/></td> </tr> <tr> <td></td> <td valign="top"> <nested:root name="anArtist"> <nested:iterate property="paintingArray"> <LI><i><nested:write property="paintingTitle" /></i> <nested:present property="toGallery"> , currently displayed at <nested:write property="toGallery.galleryName" /> </nested:present> <nested:notPresent property="toGallery"> - <a href="addPaintingToGallery.do?title=<nested:write property="paintingTitle" />">add painting to gallery display</a> </nested:notPresent> </nested:iterate> </nested:root> </td> <td></td> </tr> <tr> <td colspan="3"><br></td> </tr> </logic:iterate> <tr> <td colspan="3" align="center"><br><a href="addArtist.do">Add Artist</a></td> </tr> </table> </body> </html:html> --- NEW FILE: artistDetailPage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <br><br> <span class="titleTextStrong">Artist Detail Page</span><br><br> <table width="640" class="standardTable"> <tr> <td bgcolor="#FFFFCE" colspan="3"><b><bean:write name="artist" property="artistName" scope="request" /></b></td> </tr> <tr> <td width="100"> </td> <td><b>Paintings:</b></td> <td align="right"><b>DOB:</b> <bean:write name="artist" property="dateOfBirth" scope="request"/></td> </tr> <tr> <td></td> <td> <nested:root name="artist"> <nested:iterate property="paintingArray"> <br> <i><nested:write property="paintingTitle" /></i> <nested:present property="toGallery"> , currently displayed at <nested:write property="toGallery.galleryName" /> </nested:present> </nested:iterate> </nested:root> <br><br> <html:form action="/savePainting"> <html:hidden name="artist" property="artistName" /> <html:text property="paintingTitle" size="50"/><br> <html:text property="estimatedPrice" size="10"/><br> <html:submit> <bean:message key="button.addpainting"/> </html:submit> </html:form> </td> <td></td> </tr> </table> </body> </html:html> --- NEW FILE: build.xml --- <?xml version="1.0"?> <!-- =============================================== --> <!-- cayenne-cmd-app tutorial buildfile. --> <!-- =============================================== --> <project name="cayenne-web-app" default="compile"> <property name="tutorial.subpath" value="tutorials/cayenne-web-app"/> <property name="tutorial.build" value="${build}/${tutorial.subpath}/classes"/> <property name="tutorial.src" value="src/${tutorial.subpath}/WEB-INF/classes"/> <path id="classpath"> <fileset dir="otherlib"> <include name="*.jar"/> </fileset> <pathelement path="${build}/cayenne/classes"/> </path> <target name="prepare"> <mkdir dir="${tutorial.build}"/> </target> <target name="compile" depends="prepare"> <javac srcdir="${tutorial.src}" destdir="${tutorial.build}" debug="on" deprecation="on"> <classpath refid="classpath"/> </javac> </target> <target name="dist-src"> </target> <target name="dist-bin" depends="compile"> </target> </project> --- NEW FILE: chooseGalleryPage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <br><br> <table width="640" class="standardTable" border="1"> <tr> <td bgcolor="silver"><span class="titleTextStrong">Choose Gallery for '<b><bean:write name="painting" property="paintingTitle" scope="request" /></b>'</span></td> </tr> <tr> <td><br>Galaries currently taking submissions: (choose by clicking the gallery name)<br><br> <logic:iterate id="aGallery" name="galleries" scope="request"> <a href="choosePaintingForGallery.do?title=<bean:write name="painting" property="paintingTitle" scope="request" />&galleryName=<bean:write name="aGallery" property="galleryName"/>"><bean:write name="aGallery" property="galleryName"/></a><br> </logic:iterate> <br> </td> </tr> </table> </body> </html:html> --- NEW FILE: galleryBrowsePage.jsp --- <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <br><br> <span class="titleTextStrong">Gallery Browse Page</span><br><br> <table width="100%" class="standardTable" border="0" cellspacing="0"> <logic:iterate id="aGallery" name="galleries"> <tr> <td bgcolor="silver" colspan="2"><b>Gallery Details:</b></td> </tr> <tr> <td width="250"><bean:write name="aGallery" property="galleryName"/></td> <td width="390"><b>Current Displays:</b></td> </tr> <tr> <td></td> <td> <nested:root name="aGallery"> <nested:iterate property="paintingArray"> <nested:write property="paintingTitle" />, $<nested:write property="estimatedPrice" /> <i>by <nested:write property="toArtist.artistName" /> <a href="removePaintingFromGallery.do?title=<nested:write property="paintingTitle" />&galleryName=<bean:write name="aGallery" property="galleryName"/>">remove painting from gallery</a></i><br> </nested:iterate> </nested:root><br> </td> </tr> </logic:iterate> <tr> <td colspan="2" align="center"><a href="addGallery.do">Add Gallery</a></td> </tr> </table> </body> </html:html> --- NEW FILE: index.jsp --- <%@ page language="java" %> <%@ page import="org.objectstyle.cayenne.access.DataContext" %> <%@ page import="org.objectstyle.cayenne.access.DataDomain" %> <%@ page import="org.objectstyle.cayenne.conf.ServletConfiguration" %> <%@ page import="javax.servlet.http.HttpSession" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <% DataContext ctxt = ServletConfiguration.getDefaultContext(request.getSession()); session.setAttribute("context", ctxt); %> <html:html locale="true"> <head> <title><bean:message key="index.title"/></title> <html:base/> <LINK REL="stylesheet" TYPE="text/css" href="styles.css" TITLE="default"> </head> <body bgcolor="white"> <jsp:include page="navi.html" flush="true"/> <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application"> <font color="red"> ERROR: Application resources not loaded -- check servlet container logs for error messages. </font> </logic:notPresent> <h3><bean:message key="index.heading"/></h3> <p><bean:message key="index.message"/></p> </body> </html:html> --- NEW FILE: navi.html --- <span class="standardTable"><a href="index.jsp"><img src="images/cayenne_logo.gif" width=183 height=70 alt="return home" border="0"></a> [ <a href="browseArtists.do">view artists</a> ] - [ <a href="browseGalleries.do">view galleries</a> ]</span> --- NEW FILE: styles.css --- .standardTable {font-family: arial; border-style: none; font-size: 12px}; SPAN.titleTextStrong {font-family: arial; font-size: 14px; font-weight: bold} --- NEW FILE: tutorialdb.sql --- # Uncomment these if you already have ARTIST, GALLERY and PAINTING tables. # DROP TABLE ARTIST; # DROP TABLE GALLERY; # DROP TABLE PAINTING; CREATE TABLE ARTIST ( DATE_OF_BIRTH DATE NULL, ARTIST_ID INT NOT NULL, ARTIST_NAME CHAR(255) NOT NULL, PRIMARY KEY (ARTIST_ID) ); CREATE TABLE GALLERY ( GALLERY_ID INT NOT NULL, GALLERY_NAME VARCHAR(100) NOT NULL, PRIMARY KEY (GALLERY_ID) ); CREATE TABLE PAINTING ( PAINTING_TITLE VARCHAR(255) NOT NULL, GALLERY_ID INT NULL, ESTIMATED_PRICE DECIMAL NULL, PAINTING_ID INT NOT NULL, ARTIST_ID INT NULL, PRIMARY KEY (PAINTING_ID) ); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (1, 'The Metropolitan Museum of Art'); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (2, 'Louvre'); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (3, 'The State Hermitage Museum'); INSERT INTO ARTIST (DATE_OF_BIRTH, ARTIST_ID, ARTIST_NAME) VALUES ('1970-06-05', 1, 'Andrus Adamchik'); INSERT INTO ARTIST (DATE_OF_BIRTH, ARTIST_ID, ARTIST_NAME) VALUES ('1969-07-08', 2, 'Matt Kerr'); INSERT INTO ARTIST (DATE_OF_BIRTH, ARTIST_ID, ARTIST_NAME) VALUES ('1972-07-23', 3, 'Eric Schneider'); INSERT INTO ARTIST (DATE_OF_BIRTH, ARTIST_ID, ARTIST_NAME) VALUES ('1967-04-25', 4, 'Kyle Dawkins'); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (1, 1, 1, 'Andrus Painting One', 2500); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (2, 1, 2, 'Andrus Painting Two', 3000); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (3, 1, 3, 'Andrus Painting Three', 3500); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (4, 2, 1, 'Matt Painting One', 2000); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (5, 2, 2, 'Matt Painting Two', 2300); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (6, 2, NULL, 'Matt Painting Three', 3200); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (7, 3, 1, 'Eric Painting One', 2600); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (8, 3, NULL, 'Eric Painting Two', 2300); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (9, 3, 3, 'Eric Painting Three', 3100); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (10, 4, NULL, 'Kyle Painting One', 2200); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (11, 4, 2, 'Kyle Painting Two', 2800); INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, GALLERY_ID, PAINTING_TITLE, ESTIMATED_PRICE) VALUES (12, 4, 3, 'Kyle Painting Three', 1600); |
From: <me...@us...> - 2002-10-01 05:12:29
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-cmd-app Added Files: build.xml cayenne.xml datamap.xml driverinfo.xml tutorialdb.sql Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: build.xml --- <?xml version="1.0"?> <!-- =============================================== --> <!-- cayenne-cmd-app tutorial buildfile. --> <!-- =============================================== --> <project name="cayenne-cmd-app" default="compile"> <property name="tutorial.subpath" value="tutorials/cayenne-cmd-app"/> <property name="tutorial.build" value="${build}/${tutorial.subpath}/classes"/> <property name="tutorial.src" value="src/${tutorial.subpath}/java"/> <path id="classpath"> <fileset dir="otherlib"> <include name="*.jar"/> </fileset> <pathelement path="${build}/cayenne/classes"/> </path> <target name="prepare"> <mkdir dir="${tutorial.build}"/> </target> <target name="compile" depends="prepare"> <javac srcdir="${tutorial.src}" destdir="${tutorial.build}" debug="on" deprecation="on"> <classpath refid="classpath"/> </javac> </target> <target name="dist-src"> </target> <target name="dist-bin" depends="compile"> </target> </project> --- NEW FILE: cayenne.xml --- <?xml version="1.0" encoding="utf-8"?> <domains> <domain name="DefaultDomain"> <map name="datamap" location="datamap.xml"/> <node name="datanode" datasource="driverinfo.xml" adapter="org.objectstyle.cayenne.dba.mysql.MySQLAdapter" factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory"> <map-ref name="datamap"/> </node> </domain> </domains> --- NEW FILE: datamap.xml --- <?xml version="1.0" encoding="UTF-8"?> <data-map> <db-entity name="ARTIST" schema=""> <db-attribute name="DATE_OF_BIRTH" type="TIME" length="8"/> <db-attribute name="ARTIST_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="ARTIST_NAME" type="CHAR" isMandatory="true" length="255"/> </db-entity> <db-entity name="GALLERY" schema=""> <db-attribute name="GALLERY_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="GALLERY_NAME" type="VARCHAR" isMandatory="true" length="100"/> </db-entity> <db-entity name="PAINTING" schema=""> <db-attribute name="PAINTING_TITLE" type="VARCHAR" isMandatory="true" length="255"/> <db-attribute name="GALLERY_ID" type="INTEGER" length="11"/> <db-attribute name="ESTIMATED_PRICE" type="DECIMAL" length="10"/> <db-attribute name="PAINTING_ID" type="INTEGER" isPrimaryKey="true" isMandatory="true" length="11"/> <db-attribute name="ARTIST_ID" type="INTEGER" length="11"/> </db-entity> <obj-entity name="Artist" className="test.Artist" dbEntityName="ARTIST"> <obj-attribute name="dateOfBirth" type="java.sql.Time" db-attribute-name="DATE_OF_BIRTH"/> <obj-attribute name="artistName" type="java.lang.String" db-attribute-name="ARTIST_NAME"/> </obj-entity> <obj-entity name="Gallery" className="test.Gallery" dbEntityName="GALLERY"> <obj-attribute name="galleryName" type="java.lang.String" db-attribute-name="GALLERY_NAME"/> </obj-entity> <obj-entity name="Painting" className="test.Painting" dbEntityName="PAINTING"> <obj-attribute name="estimatedPrice" type="java.math.BigDecimal" db-attribute-name="ESTIMATED_PRICE"/> <obj-attribute name="paintingTitle" type="java.lang.String" db-attribute-name="PAINTING_TITLE"/> </obj-entity> <db-relationship name="paintingArray" source="ARTIST" target="PAINTING" toDependentPK="false" toMany="true"> <db-attribute-pair source="ARTIST_ID" target="ARTIST_ID"/> </db-relationship> <db-relationship name="paintingArray" source="GALLERY" target="PAINTING" toDependentPK="false" toMany="true"> <db-attribute-pair source="GALLERY_ID" target="GALLERY_ID"/> </db-relationship> <db-relationship name="toGallery" source="PAINTING" target="GALLERY" toDependentPK="false" toMany="false"> <db-attribute-pair source="GALLERY_ID" target="GALLERY_ID"/> </db-relationship> <db-relationship name="toArtist" source="PAINTING" target="ARTIST" toDependentPK="false" toMany="false"> <db-attribute-pair source="ARTIST_ID" target="ARTIST_ID"/> </db-relationship> <obj-relationship name="paintingArray" source="Artist" target="Painting" toMany="true"> <db-relationship-ref source="ARTIST" target="PAINTING" name="paintingArray"/> </obj-relationship> <obj-relationship name="paintingArray" source="Gallery" target="Painting" toMany="true"> <db-relationship-ref source="GALLERY" target="PAINTING" name="paintingArray"/> </obj-relationship> <obj-relationship name="toGallery" source="Painting" target="Gallery" toMany="false"> <db-relationship-ref source="PAINTING" target="GALLERY" name="toGallery"/> </obj-relationship> <obj-relationship name="toArtist" source="Painting" target="Artist" toMany="false"> <db-relationship-ref source="PAINTING" target="ARTIST" name="toArtist"/> </obj-relationship> </data-map> --- NEW FILE: driverinfo.xml --- <driver class="org.gjt.mm.mysql.Driver"> <url value="jdbc:mysql://localhost/test"/> <connectionPool min="1" max="1" /> <login userName="dummy" password="dummy" /> </driver> --- NEW FILE: tutorialdb.sql --- CREATE TABLE ARTIST ( DATE_OF_BIRTH TIME NULL, ARTIST_ID INT NOT NULL, ARTIST_NAME CHAR(255) NOT NULL, PRIMARY KEY (ARTIST_ID) ); CREATE TABLE GALLERY ( GALLERY_ID INT NOT NULL, GALLERY_NAME VARCHAR(100) NOT NULL, PRIMARY KEY (GALLERY_ID) ); CREATE TABLE PAINTING ( PAINTING_TITLE VARCHAR(255) NOT NULL, GALLERY_ID INT NULL, ESTIMATED_PRICE DECIMAL NULL, PAINTING_ID INT NOT NULL, ARTIST_ID INT NULL, PRIMARY KEY (PAINTING_ID) ); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (1, 'The Metropolitan Museum of Art'); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (2, 'Louvre'); INSERT INTO GALLERY (GALLERY_ID, GALLERY_NAME) VALUES (3, 'The State Hermitage Museum'); |
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/java/test In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-cmd-app/java/test Added Files: Artist.java Gallery.java Main.java Painting.java _Artist.java _Gallery.java _Painting.java Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: Artist.java --- package test; import org.objectstyle.cayenne.*; public class Artist extends _Artist { } --- NEW FILE: Gallery.java --- package test; import org.objectstyle.cayenne.*; public class Gallery extends _Gallery { } --- NEW FILE: Main.java --- package test; import org.objectstyle.cayenne.access.DataContext; import org.objectstyle.cayenne.access.DataDomain; import org.objectstyle.cayenne.conf.Configuration; import org.objectstyle.cayenne.exp.Expression; import org.objectstyle.cayenne.exp.ExpressionFactory; import org.objectstyle.cayenne.query.SelectQuery; import java.util.List; import org.apache.log4j.Level; public class Main { private DataContext ctxt; /** * Runs tutorial. * Usage: * java test.Main galleryPattern */ public static void main(String[] args) { if (args.length != 1) { System.err.println("Usage:"); System.err.println(" java test.Main galleryPattern"); System.exit(1); } Main tutorialObj = new Main(); tutorialObj.runTutorial(args[0]); } public Main() { this.ctxt = createContext(); } public void runTutorial(String galleryPattern) { Gallery gallery = findGallery(galleryPattern); if (gallery != null) { addArtist(gallery); } } /** Creates and returns DataContext object. */ private DataContext createContext() { Configuration.bootstrapSharedConfig(this.getClass()); DataDomain sharedDomain = Configuration.getSharedConfig().getDomain(); return sharedDomain.createDataContext(); } /** * Searches for matching galleries in the database. * If one and only one matching gallery is found, it is returned, * otherwise null is returned. */ private Gallery findGallery(String galleryPattern) { String likePattern = "%" + galleryPattern + "%"; Expression qual = ExpressionFactory.binaryPathExp( Expression.LIKE_IGNORE_CASE, "galleryName", likePattern); SelectQuery query = new SelectQuery("Gallery", qual); // using log level of ERROR to make sure that query // execution is logged to STDOUT query.setLoggingLevel(Level.ERROR); List galleries = ctxt.performQuery(query); if (galleries.size() == 1) { Gallery gallery = (Gallery) galleries.get(0); System.out.println("\nFound gallery '" + gallery.getGalleryName() + "'.\n"); return gallery; } else if (galleries.size() == 0) { System.out.println("No matching galleries found."); return null; } else { System.out.println("Found more than one matching gallery. Be more specific."); return null; } } /** Adds new artist and his paintings to the gallery. */ private void addArtist(Gallery gallery) { // create new Artist object Artist dali = (Artist)ctxt.createAndRegisterNewObject("Artist"); dali.setArtistName("Salvador Dali"); // create new Painting object Painting paint = (Painting)ctxt.createAndRegisterNewObject("Painting"); paint.setPaintingTitle("Sleep"); // establish relationship between artist and painting dali.addToPaintingArray(paint); // commit to the database // using log level of ERROR to show the query execution ctxt.commitChanges(Level.ERROR); } } --- NEW FILE: Painting.java --- package test; import org.objectstyle.cayenne.*; public class Painting extends _Painting { } --- NEW FILE: _Artist.java --- package test; import java.util.List; import org.objectstyle.cayenne.*; /** Class _Artist was generated by Cayenne. * It is probably a good idea to avoid changing this class manually, * since it may be overwritten next time code is regenerated. * If you need to make any customizations, please use subclass. */ public class _Artist extends CayenneDataObject { public void setDateOfBirth(java.sql.Time dateOfBirth) { writeProperty("dateOfBirth", dateOfBirth); } public java.sql.Time getDateOfBirth() { return (java.sql.Time)readProperty("dateOfBirth"); } public void setArtistName(java.lang.String artistName) { writeProperty("artistName", artistName); } public java.lang.String getArtistName() { return (java.lang.String)readProperty("artistName"); } public void addToPaintingArray(test.Painting obj) { addToManyTarget("paintingArray", obj, true); } public void removeFromPaintingArray(test.Painting obj) { removeToManyTarget("paintingArray", obj, true); } public List getPaintingArray() { return (List)readProperty("paintingArray"); } } --- NEW FILE: _Gallery.java --- package test; import java.util.List; import org.objectstyle.cayenne.*; /** Class _Gallery was generated by Cayenne. * It is probably a good idea to avoid changing this class manually, * since it may be overwritten next time code is regenerated. * If you need to make any customizations, please use subclass. */ public class _Gallery extends CayenneDataObject { public void setGalleryName(java.lang.String galleryName) { writeProperty("galleryName", galleryName); } public java.lang.String getGalleryName() { return (java.lang.String)readProperty("galleryName"); } public void addToPaintingArray(test.Painting obj) { addToManyTarget("paintingArray", obj, true); } public void removeFromPaintingArray(test.Painting obj) { removeToManyTarget("paintingArray", obj, true); } public List getPaintingArray() { return (List)readProperty("paintingArray"); } } --- NEW FILE: _Painting.java --- package test; import java.util.List; import org.objectstyle.cayenne.*; /** Class _Painting was generated by Cayenne. * It is probably a good idea to avoid changing this class manually, * since it may be overwritten next time code is regenerated. * If you need to make any customizations, please use subclass. */ public class _Painting extends CayenneDataObject { public void setEstimatedPrice(java.math.BigDecimal estimatedPrice) { writeProperty("estimatedPrice", estimatedPrice); } public java.math.BigDecimal getEstimatedPrice() { return (java.math.BigDecimal)readProperty("estimatedPrice"); } public void setPaintingTitle(java.lang.String paintingTitle) { writeProperty("paintingTitle", paintingTitle); } public java.lang.String getPaintingTitle() { return (java.lang.String)readProperty("paintingTitle"); } public void setToGallery(test.Gallery toGallery) { setToOneTarget("toGallery", toGallery, true); } public test.Gallery getToGallery() { return (test.Gallery)readProperty("toGallery"); } public void setToArtist(test.Artist toArtist) { setToOneTarget("toArtist", toArtist, true); } public test.Artist getToArtist() { return (test.Artist)readProperty("toArtist"); } } |
From: <me...@us...> - 2002-10-01 05:12:29
|
Update of /cvsroot/cayenne/cayenne In directory usw-pr-cvs1:/tmp/cvs-serv26389 Modified Files: build-tests.xml build.xml Added Files: build-tutorials.xml Log Message: relocated tutorials to a subproject (old tutorials are still around but will be deleted soon) --- NEW FILE: build-tutorials.xml --- <?xml version="1.0"?> <!-- =============================================== --> <!-- Tutorials buildfile. --> <!-- Tutorials normally do not follow the "standard" --> <!-- Cayenne subproject layout, therefore they have --> <!-- their own build.xml file called from here. --> <!-- =============================================== --> <project name="cayenne-tutorials" default="compile"> <target name="compile"> <ant antfile="src/tutorials/cayenne-cmd-app/build.xml" target="compile"/> <ant antfile="src/tutorials/cayenne-web-app/build.xml" target="compile"/> </target> <target name="dist-src"> <ant antfile="src/tutorials/cayenne-cmd-app/build.xml" target="dist-src"/> <ant antfile="src/tutorials/cayenne-web-app/build.xml" target="dist-src"/> </target> <target name="dist-bin"> <ant antfile="src/tutorials/cayenne-cmd-app/build.xml" target="dist-bin"/> <ant antfile="src/tutorials/cayenne-web-app/build.xml" target="dist-bin"/> </target> </project> Index: build-tests.xml =================================================================== RCS file: /cvsroot/cayenne/cayenne/build-tests.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- build-tests.xml 1 Oct 2002 03:53:39 -0000 1.3 +++ build-tests.xml 1 Oct 2002 05:12:26 -0000 1.4 @@ -41,7 +41,7 @@ <!-- ========================================== --> - <!-- Build "fat" JAR file with dependencies. --> + <!-- Builds tests JAR file. --> <!-- ========================================== --> <target name="jar" depends="compile"> <jar jarfile="${dist}/lib/cayenne-tests.jar" manifest="src/tests/MANIFEST.MF"> Index: build.xml =================================================================== RCS file: /cvsroot/cayenne/cayenne/build.xml,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- build.xml 26 Sep 2002 04:10:48 -0000 1.39 +++ build.xml 1 Oct 2002 05:12:26 -0000 1.40 @@ -92,6 +92,7 @@ <ant antfile="build-cayenne.xml" target="dist-bin"/> <ant antfile="build-tests.xml" target="dist-bin"/> <ant antfile="build-performance.xml" target="dist-bin"/> + <ant antfile="build-tutorials.xml" target="dist-bin"/> </target> <!-- ========================================== --> @@ -101,6 +102,7 @@ <ant antfile="build-cayenne.xml" target="compile"/> <ant antfile="build-tests.xml" target="compile"/> <ant antfile="build-performance.xml" target="compile"/> + <ant antfile="build-tutorials.xml" target="compile"/> </target> |
From: <me...@us...> - 2002-10-01 05:09:09
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/java/test In directory usw-pr-cvs1:/tmp/cvs-serv25864/test Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/java/test added to the repository |
From: <me...@us...> - 2002-10-01 05:09:01
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/java In directory usw-pr-cvs1:/tmp/cvs-serv25821/java Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app/java added to the repository |
From: <me...@us...> - 2002-10-01 05:08:03
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/action In directory usw-pr-cvs1:/tmp/cvs-serv25637/action Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/action added to the repository |
From: <me...@us...> - 2002-10-01 05:07:04
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/formbean In directory usw-pr-cvs1:/tmp/cvs-serv25418/formbean Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/formbean added to the repository |
From: <me...@us...> - 2002-10-01 05:06:21
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/webtest In directory usw-pr-cvs1:/tmp/cvs-serv25254/webtest Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/webtest added to the repository |
From: <me...@us...> - 2002-10-01 05:05:57
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/lib In directory usw-pr-cvs1:/tmp/cvs-serv25150/lib Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/lib added to the repository |
From: <me...@us...> - 2002-10-01 05:05:49
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes In directory usw-pr-cvs1:/tmp/cvs-serv25110/classes Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes added to the repository |
From: <me...@us...> - 2002-10-01 05:05:23
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF In directory usw-pr-cvs1:/tmp/cvs-serv24979/WEB-INF Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF added to the repository |
From: <me...@us...> - 2002-10-01 05:05:16
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/META-INF In directory usw-pr-cvs1:/tmp/cvs-serv24935/META-INF Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/META-INF added to the repository |
From: <me...@us...> - 2002-10-01 05:05:04
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/images In directory usw-pr-cvs1:/tmp/cvs-serv24839/images Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/images added to the repository |
From: <me...@us...> - 2002-10-01 05:04:11
|
Update of /cvsroot/cayenne/cayenne/contrib/ide/eclipse In directory usw-pr-cvs1:/tmp/cvs-serv24527/ide/eclipse Modified Files: .classpath Log Message: changes reflecting new project jars and folders Index: .classpath =================================================================== RCS file: /cvsroot/cayenne/cayenne/contrib/ide/eclipse/.classpath,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- .classpath 10 Sep 2002 05:57:15 -0000 1.2 +++ .classpath 1 Oct 2002 05:04:08 -0000 1.3 @@ -3,6 +3,8 @@ <classpathentry kind="src" path="src/cayenne/java"/> <classpathentry kind="src" path="src/performance/java"/> <classpathentry kind="src" path="src/tests/java"/> + <classpathentry kind="src" path="src/tutorials/cayenne-cmd-app/java"/> + <classpathentry kind="src" path="src/tutorials/cayenne-web-app/WEB-INF/classes"/> <classpathentry exported="true" kind="lib" path="otherlib/JavaCC.zip"/> <classpathentry exported="true" kind="lib" path="otherlib/ant.jar"/> <classpathentry exported="true" kind="lib" path="otherlib/commons-beanutils.jar"/> @@ -13,6 +15,7 @@ <classpathentry exported="true" kind="lib" path="otherlib/log4j-1.2.6.jar"/> <classpathentry exported="true" kind="lib" path="otherlib/servlet.jar"/> <classpathentry exported="true" kind="lib" path="otherlib/velocity-dep-1.3.jar"/> + <classpathentry exported="true" kind="lib" path="otherlib/struts.jar"/> <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/> <classpathentry kind="output" path="build/classes"/> </classpath> |
From: <me...@us...> - 2002-10-01 04:59:49
|
Update of /cvsroot/cayenne/cayenne/otherlib In directory usw-pr-cvs1:/tmp/cvs-serv23064 Added Files: struts.jar Log Message: added struts.jar needed to build tutorials --- NEW FILE: struts.jar --- (This appears to be a binary file; contents omitted.) |
From: <me...@us...> - 2002-10-01 04:56:22
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app In directory usw-pr-cvs1:/tmp/cvs-serv22778/cayenne-cmd-app Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-cmd-app added to the repository |
From: <me...@us...> - 2002-10-01 04:56:15
|
Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app In directory usw-pr-cvs1:/tmp/cvs-serv22739/cayenne-web-app Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app added to the repository |
From: <me...@us...> - 2002-10-01 04:56:07
|
Update of /cvsroot/cayenne/cayenne/src/tutorials In directory usw-pr-cvs1:/tmp/cvs-serv22712/tutorials Log Message: Directory /cvsroot/cayenne/cayenne/src/tutorials added to the repository |
From: <me...@us...> - 2002-10-01 03:53:42
|
Update of /cvsroot/cayenne/cayenne In directory usw-pr-cvs1:/tmp/cvs-serv9753 Modified Files: build-tests.xml Log Message: comments fix Index: build-tests.xml =================================================================== RCS file: /cvsroot/cayenne/cayenne/build-tests.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- build-tests.xml 9 Sep 2002 01:11:59 -0000 1.2 +++ build-tests.xml 1 Oct 2002 03:53:39 -0000 1.3 @@ -1,7 +1,7 @@ <?xml version="1.0"?> <!-- ========================================== --> -<!-- Core Cayenne subproject buildfile. --> +<!-- Cayenne tests subproject buildfile. --> <!-- ========================================== --> <project name="cayenne-tests" default="compile"> <property name="test.dist.src" value="${dist}/src/tests"/> |