It occurs when I try to call DTOAssembler.newAssembler(...) not sure what is causing this issue. Here is the full stack trace:
Here is a sample of my DTO object:
@Dto
@MapsTo(ActivityEntity.class) // class for my project use (still transitioning to a new mapper)
@SuppressWarnings("serial")
public class Activity implements DomainObject, Comparable<Activity> {
@DtoField int id;
@DtoField String name;
@DtoField String description;
public Activity() {}
@Override
public int getId() {
return id;
}
@Override
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
// Adapter functionality
public static final DomainProvidesKey<Activity> KEY_PROVIDER =
new DomainProvidesKey<Activity>() {
public Object getKey(Activity domain) {
return domain == null ? null : domain.getId();
}
};
@Override
public int compareTo(Activity o) {
if(o == null || getId() < o.getId()) {
return -1;
} else if(getId() == o.getId()) {
return 0;
} else {
return 1;
}
}
@Override
public boolean equals(Object o) {
if(o instanceof Activity) {
return getId() == ((Activity) o).getId();
}
return false;
}
public static class Adapter extends DomainAdapter<Activity> {
public Adapter() { }
}
}