Hi,
This is not possible due to the way Java generics are implemented. At
least not at present.
-Filip
On 2008-05-07 06:51, Jun Tsai wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]