Here's my final class.
public class ActivitiesSQL implements Activities {
...
@Override
public boolean add( Activity e ) {
throw new UnsupportedOperationException( "Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
}
@Override
public boolean remove( Object o ) {
throw new UnsupportedOperationException( "Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
}
}
public interface Activities extends Repository<Activity, ActivityId> {
...
}
public interface Repository<T, ID> extends Set<T> {
public abstract T findById( ID id );
}
What I'm trying to understand is why the generated code is remove( Object...
and add( Activity ...)
. Why isn't it remove( Activity ... )
?