1 package cayenne.tutorial.tapestry.domain.auto; 2 3 import java.util.List ; 4 5 10 public class _Gallery extends org.objectstyle.cayenne.CayenneDataObject { 11 12 public static final String GALLERY_NAME_PROPERTY = "galleryName"; 13 public static final String PAINTING_ARRAY_PROPERTY = "paintingArray"; 14 15 public static final String GALLERY_ID_PK_COLUMN = "GALLERY_ID"; 16 17 public void setGalleryName(String galleryName) { 18 writeProperty("galleryName", galleryName); 19 } 20 public String getGalleryName() { 21 return (String )readProperty("galleryName"); 22 } 23 24 25 public void addToPaintingArray(cayenne.tutorial.tapestry.domain.Painting obj) { 26 addToManyTarget("paintingArray", obj, true); 27 } 28 public void removeFromPaintingArray(cayenne.tutorial.tapestry.domain.Painting obj) { 29 removeToManyTarget("paintingArray", obj, true); 30 } 31 public List getPaintingArray() { 32 return (List )readProperty("paintingArray"); 33 } 34 35 36 } 37 | Popular Tags |