package org.apache.cayenne.testdo.testmap.auto;
import java.math.BigDecimal;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.testmap.Artist;
import org.apache.cayenne.testdo.testmap.Gallery;
import org.apache.cayenne.testdo.testmap.PaintingInfo;
/**
* Class _CompoundPainting 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 _CompoundPainting extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String PAINTING_ID_PK_COLUMN = "PAINTING_ID";
public static final Property<String> ARTIST_NAME = Property.create("artistName", String.class);
public static final Property<BigDecimal> ESTIMATED_PRICE = Property.create("estimatedPrice", BigDecimal.class);
public static final Property<String> GALLERY_NAME = Property.create("galleryName", String.class);
public static final Property<String> PAINTING_TITLE = Property.create("paintingTitle", String.class);
public static final Property<String> TEXT_REVIEW = Property.create("textReview", String.class);
public static final Property<Artist> TO_ARTIST = Property.create("toArtist", Artist.class);
public static final Property<Gallery> TO_GALLERY = Property.create("toGallery", Gallery.class);
public static final Property<PaintingInfo> TO_PAINTING_INFO = Property.create("toPaintingInfo", PaintingInfo.class);
public void setArtistName(String artistName) {
writeProperty("artistName", artistName);
}
public String getArtistName() {
return (String)readProperty("artistName");
}
public void setEstimatedPrice(BigDecimal estimatedPrice) {
writeProperty("estimatedPrice", estimatedPrice);
}
public BigDecimal getEstimatedPrice() {
return (BigDecimal)readProperty("estimatedPrice");
}
public void setGalleryName(String galleryName) {
writeProperty("galleryName", galleryName);
}
public String getGalleryName() {
return (String)readProperty("galleryName");
}
public void setPaintingTitle(String paintingTitle) {
writeProperty("paintingTitle", paintingTitle);
}
public String getPaintingTitle() {
return (String)readProperty("paintingTitle");
}
public void setTextReview(String textReview) {
writeProperty("textReview", textReview);
}
public String getTextReview() {
return (String)readProperty("textReview");
}
public void setToArtist(Artist toArtist) {
setToOneTarget("toArtist", toArtist, true);
}
public Artist getToArtist() {
return (Artist)readProperty("toArtist");
}
public void setToGallery(Gallery toGallery) {
setToOneTarget("toGallery", toGallery, true);
}
public Gallery getToGallery() {
return (Gallery)readProperty("toGallery");
}
public void setToPaintingInfo(PaintingInfo toPaintingInfo) {
setToOneTarget("toPaintingInfo", toPaintingInfo, true);
}
public PaintingInfo getToPaintingInfo() {
return (PaintingInfo)readProperty("toPaintingInfo");
}
}