Re: [Perfectjpattern-users] Problem with AbstractHibernateManagedGenericDao constructor?
Brought to you by:
bravegag
From: Niran A. <ni...@eb...> - 2009-05-11 21:42:28
|
Sorry, my mistake. I forgot I can initialize the superclass separately with: public MovieGenericDao() { super(Movie.class); } Thanks for providing a great framework :) Best regards, Niran > Hi, > > When I try to extend AbstractHibernateManagedGenericDao such as in the > example: > http://perfectjpattern.sourceforge.net/xref/org/perfectjpattern/jee/integration/dao/jpa/MovieGenericDao.html > > My IDE says there is no default constructor available in > org.perfectjpattern.jee.api.integration.dao.AbstractHibernateManagedGenericDao > for: > AbstractHibernateManagedGenericDao<Long, Movie> > > If I look at the class definition for AbstractHibernateManagedGenericDao: > http://perfectjpattern.sourceforge.net/xref/org/perfectjpattern/jee/integration/dao/AbstractHibernateManagedGenericDao.html > > There is only one constructor: > public AbstractHibernateManagedGenericDao(Class<Element> aPersistentClass) > which doesn't match the code example? Does your above example work? Or am I > missing some other apis? > > Thanks, > Niran > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Perfectjpattern-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfectjpattern-users > |