public class GenericCreatePage<T>{
private T entity;
void onSuccess(){
orm.save(entity);
}
public void setter/getter
}
public class CreateUser exntends GenericCreatePage<User>{
void onActivate(){
// Must instance the entity object.How to avoid or using generic
method?
setEntity(new User());
}
}
thanks
--
regards,
Jun Tsai
