--- In jug-indonesia@yahoogroups.com, "saiful_haqqi" <[EMAIL PROTECTED]> wrote: > > --- In jug-indonesia@yahoogroups.com, "Donny A. Wijaya" <don_wjy@> > wrote: > > > > @AutoWired > > public void setSessionFactory(SessionFactory sessionFactory) { > > super.setSessionFactory(sessionFactory); > > } > > > > @Autowired > public void setSessionFactory(SessionFactory sessionFactory) { > super.setSessionFactory(sessionFactory); > } > > muncul error dikarenakan method tersebut final dan tidak bisa > dioverride lagi :( , apa saya harus ubah source java filenya mas .. ?! > > setSessionFactory(org.hibernate.SessionFactory) in > com.wesolve.dvas.hibernate.dao.MasterDivreDao cannot override > setSessionFactory(org.hibernate.SessionFactory) in > org.springframework.orm.hibernate3.support.HibernateDaoSupport; > overridden method is final. >
i see ganti aja gih nama method nya, tapi elo pakai @Qualifier buat manggil sessionFactory lebih akurat :) @AutoWired public void setMySessionFactory(@Qualifier("sessionFactory") SessionFactory sessionFactory) { super.setSessionFactory(sessionFactory); }