java - Request factory entity inheritance and proxy interface -
if have entity extending other entity, can't specify setter methods in proxy interface. eclipse tells me there no matching method in entity class. thats true because in super class. can't request factory handle inheritance or configuration issue in eclipse. (i set annotation processing stuff request factory validation)
here example code: entity. has no methods should inherit them superclass:
@entity public class entity extend abstractentity{ } the superclass. holds setter , getter:
public class abstractentity{ votetype gettype(){ return null; } public void settype(votetype vote) {} } my proxy interface. eclipse marks settype() method error. (but not gettype()?)
@proxyfor(value=entity.class) public interface entityproxy extends entityproxy{ public votetype gettype(); public void settype(votetype vote); }
according docs, entity class should have @entity annotation , entityproxy interface should extend entityproxy interface.
Comments
Post a Comment