1 package webtest; 2 3 import java.util.List ; 4 5 import org.objectstyle.cayenne.CayenneDataObject; 6 7 12 public class _Gallery extends CayenneDataObject { 13 14 public void setGalleryName(String galleryName) { 15 writeProperty("galleryName", galleryName); 16 } 17 public String getGalleryName() { 18 return (String )readProperty("galleryName"); 19 } 20 21 22 public void addToPaintingArray(Painting obj) { 23 addToManyTarget("paintingArray", obj, true); 24 } 25 public void removeFromPaintingArray(Painting obj) { 26 removeToManyTarget("paintingArray", obj, true); 27 } 28 public List getPaintingArray() { 29 return (List )readProperty("paintingArray"); 30 } 31 32 33 } 34 | Popular Tags |