41 lines
878 B
Java
41 lines
878 B
Java
package org.warp.jcwdb.ann.exampleimpl;
|
|
|
|
import org.warp.jcwdb.ann.*;
|
|
|
|
@DBClass(classTypeId = 0)
|
|
public class Class1 extends DBObject {
|
|
public Class1(Database database) {
|
|
super(database);
|
|
}
|
|
|
|
public Class1(Database database, long uid) {
|
|
super(database, uid);
|
|
}
|
|
|
|
@DBField(id = 0, type = DBDataType.OBJECT)
|
|
public String value1;
|
|
|
|
@DBField(id = 1, type = DBDataType.INTEGER)
|
|
public int value2;
|
|
|
|
@DBPropertyGetter(id = 0, type = DBDataType.OBJECT)
|
|
public String getValue3() {
|
|
return getProperty();
|
|
}
|
|
|
|
@DBPropertySetter(id = 0, type = DBDataType.OBJECT)
|
|
public void setValue3(String value) {
|
|
setProperty(value);
|
|
}
|
|
|
|
@DBPropertyGetter(id = 1, type = DBDataType.DATABASE_OBJECT)
|
|
public Class1 getValue4() {
|
|
return getProperty();
|
|
}
|
|
|
|
@DBPropertySetter(id = 1, type = DBDataType.DATABASE_OBJECT)
|
|
public void setValue4(Class1 value) {
|
|
setProperty(value);
|
|
}
|
|
}
|