# Template binding, how to extend Generics

**URL:** <https://forums.visual-paradigm.com/t/template-binding-how-to-extend-generics/11561>\
**Category:** General Questions/Discussions\
**Created:** [October 18, 2010, 4:17pm UTC](https://forums.visual-paradigm.com/t/template-binding-how-to-extend-generics/11561 "2010-10-18T16:17:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![astanc](https://avatars.discourse-cdn.com/v2/letter/a/df788c/32.png) [@astanc](https://forums.visual-paradigm.com/u/astanc)\
**Post date:** [October 21, 2010, 11:12am UTC](https://forums.visual-paradigm.com/t/template-binding-how-to-extend-generics/11561/1 "2010-10-21T11:12:56Z")

</div>

I have the following class:  
public interface GenericDao\<T, PK extends Serializable\> {  
public T get(PK id);  
}  
and its subinterface

public interface SubDao extends GenericDao\<Class1, Integer\> {  
}

the public T get(PK id); method inherited by the SubDao must get the following signature public Class1 get(Integer id); in the SubDao.

I Created GenericDao with 2 template parameters T and PK, and added “Binding Dependency” between GenericDao and SubDao, however I can’t find anywhere how I can specify the values, template parameters will get in the SubDao.

does anybody know?
