org.apache.openjpa.example.gallery.model
Class Image
java.lang.Object
org.apache.openjpa.example.gallery.model.Image
@Entity
@ImageConstraint(groups=ImageGroup.class)
public class Image
- extends Object
Image entity which makes use of several BV constraints.
Constructor Summary |
Image()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Image
public Image()
getId
public long getId()
setId
public void setId(long id)
getType
@NotNull(message="Image type must be specified.")
public ImageType getType()
setType
public void setType(ImageType type)
getFileName
@NotNull(message="Image file name must not be null.")
public String getFileName()
setFileName
public void setFileName(String fileName)
getData
@NotNull(message="Image data must not be null.")
public byte[] getData()
setData
public void setData(byte[] data)
getLocation
public Location getLocation()
setLocation
public void setLocation(Location location)
getCreator
public Creator getCreator()
setCreator
public void setCreator(Creator creator)
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.