cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudarshana Gurusinghe <>
Subject Question on Cayenne
Date Wed, 07 Aug 2013 04:09:23 GMT

I have just started trying this using I have generated simple
classes. But the _Book class refers to some additional class named
Properties which is not in the library.

See the generated code.


import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;

 * Class _Author 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 _Author extends CayenneDataObject {

    public static final String FIRSTNAME_PROPERTY = "firstname";

    public static final String ID_PK_COLUMN = "id";

    public static final Property<String> FIRSTNAME = new

    public void setFirstname(String firstname) {
        writeProperty("firstname", firstname);
    public String getFirstname() {
        return (String)readProperty("firstname");


What am I doing wrong and where can I get the Property class ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message