Update of /cvsroot/cayenne/cayenne/src/tutorials/cayenne-web-app/WEB-INF/classes/webtest In directory usw-pr-cvs1:/tmp/cvs-serv26389/src/tutorials/cayenne-web-app/WEB-INF/classes/webtest Added Files: Artist.java CustomConfiguration.java Gallery.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 webtest; public class Artist extends _Artist { } --- NEW FILE: CustomConfiguration.java --- package webtest; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.objectstyle.cayenne.conf.ServletConfiguration; /** * Special subclass of ServletConfiguration that enables * logging of Cayenne queries and can also perform some * custom tasks on servlet container startup. */ public class CustomConfiguration extends ServletConfiguration { static Logger logObj = Logger.getLogger(CustomConfiguration.class); public CustomConfiguration() { super(); configureLogging(); } private void configureLogging() { // debug configuration setLoggingLevel(Level.WARN); } } --- NEW FILE: Gallery.java --- package webtest; public class Gallery extends _Gallery { } --- NEW FILE: Painting.java --- package webtest; public class Painting extends _Painting { } --- NEW FILE: _Artist.java --- package webtest; import java.util.List; import org.objectstyle.cayenne.CayenneDataObject; /** 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.Date dateOfBirth) { writeProperty("dateOfBirth", dateOfBirth); } public java.sql.Date getDateOfBirth() { return (java.sql.Date)readProperty("dateOfBirth"); } public void setArtistName(java.lang.String artistName) { writeProperty("artistName", artistName); } public java.lang.String getArtistName() { return (String)readProperty("artistName"); } public void addToPaintingArray(webtest.Painting obj) { addToManyTarget("paintingArray", obj, true); } public void removeFromPaintingArray(webtest.Painting obj) { removeToManyTarget("paintingArray", obj, true); } public List getPaintingArray() { return (List)readProperty("paintingArray"); } } --- NEW FILE: _Gallery.java --- package webtest; import java.util.List; import org.objectstyle.cayenne.CayenneDataObject; /** 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(String galleryName) { writeProperty("galleryName", galleryName); } public java.lang.String getGalleryName() { return (String)readProperty("galleryName"); } public void addToPaintingArray(webtest.Painting obj) { addToManyTarget("paintingArray", obj, true); } public void removeFromPaintingArray(webtest.Painting obj) { removeToManyTarget("paintingArray", obj, true); } public List getPaintingArray() { return (List)readProperty("paintingArray"); } } --- NEW FILE: _Painting.java --- package webtest; import org.objectstyle.cayenne.CayenneDataObject; /** 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(String paintingTitle) { writeProperty("paintingTitle", paintingTitle); } public java.lang.String getPaintingTitle() { return (String)readProperty("paintingTitle"); } public void setToGallery(webtest.Gallery toGallery) { setToOneTarget("toGallery", toGallery, true); } public webtest.Gallery getToGallery() { return (webtest.Gallery)readProperty("toGallery"); } public void setToArtist(webtest.Artist toArtist) { setToOneTarget("toArtist", toArtist, true); } public webtest.Artist getToArtist() { return (webtest.Artist)readProperty("toArtist"); } } |