package org.apache.cayenne.testdo.testmap.auto; import java.util.List; import org.apache.cayenne.CayenneDataObject; import org.apache.cayenne.exp.Property; import org.apache.cayenne.testdo.testmap.Exhibit; import org.apache.cayenne.testdo.testmap.Painting; /** * 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 abstract class _Gallery extends CayenneDataObject { private static final long serialVersionUID = 1L; public static final String GALLERY_ID_PK_COLUMN = "GALLERY_ID"; public static final Property<String> GALLERY_NAME = Property.create("galleryName", String.class); public static final Property<List<Exhibit>> EXHIBIT_ARRAY = Property.create("exhibitArray", List.class); public static final Property<List<Painting>> PAINTING_ARRAY = Property.create("paintingArray", List.class); public void setGalleryName(String galleryName) { writeProperty("galleryName", galleryName); } public String getGalleryName() { return (String)readProperty("galleryName"); } public void addToExhibitArray(Exhibit obj) { addToManyTarget("exhibitArray", obj, true); } public void removeFromExhibitArray(Exhibit obj) { removeToManyTarget("exhibitArray", obj, true); } @SuppressWarnings("unchecked") public List<Exhibit> getExhibitArray() { return (List<Exhibit>)readProperty("exhibitArray"); } public void addToPaintingArray(Painting obj) { addToManyTarget("paintingArray", obj, true); } public void removeFromPaintingArray(Painting obj) { removeToManyTarget("paintingArray", obj, true); } @SuppressWarnings("unchecked") public List<Painting> getPaintingArray() { return (List<Painting>)readProperty("paintingArray"); } }