Scala Generic Type T错误

时间:2013-03-27 09:00:55

标签: scala

     @Repository("abstractHibernateDao")
     abstract class AbstractHibernateDao<T ID extends Serializable> 

                extends GenericDao<T, ID>{}

Complier显示

`(';' expected but identifier found.)

1 个答案:

答案 0 :(得分:2)

我认为问题是

        @Repository("abstractHibernateDao")
        abstract class AbstractHibernateDao<T ID extends Serializable> 

            extends GenericDao<T, ID>{}
           the comma is needed `<T, ID extends Serializable>` HERE