1 package webtest; 2 3 import java.util.List ; 4 5 import org.objectstyle.cayenne.CayenneDataObject; 6 7 12 public class _Artist extends CayenneDataObject { 13 14 public void setArtistName(String artistName) { 15 writeProperty("artistName", artistName); 16 } 17 public String getArtistName() { 18 return (String )readProperty("artistName"); 19 } 20 21 22 public void setDateOfBirth(java.sql.Date dateOfBirth) { 23 writeProperty("dateOfBirth", dateOfBirth); 24 } 25 public java.sql.Date getDateOfBirth() { 26 return (java.sql.Date )readProperty("dateOfBirth"); 27 } 28 29 30 public void addToPaintingArray(Painting obj) { 31 addToManyTarget("paintingArray", obj, true); 32 } 33 public void removeFromPaintingArray(Painting obj) { 34 removeToManyTarget("paintingArray", obj, true); 35 } 36 public List getPaintingArray() { 37 return (List )readProperty("paintingArray"); 38 } 39 40 41 } 42 | Popular Tags |