The error is:
The type PersonManager is not generic; it cannot be parameterized with
arguments <Person,  Long>

When I change
>     private GenericManager<Person, Long> personManager = null;
>  to
>     private PersonManager<Person, Long> personManager = null;

I would zip it up to you but it is exactly the same as the tutorial.

I've zipped up PersonManager and PersonManagerImpl

Thanks



mraible wrote:
> 
> What error are you getting?  If you'd like, you can send me your
> project (zip it up and send it to [EMAIL PROTECTED]) and I can look at
> it later tonight.
> 
> Matt
> 
> On 3/27/07, whyme <[EMAIL PROTECTED]> wrote:
>>
>> Yeah and they are exactly as they are in the tutorial. Then there is the
>> note
>>
>> The Web application tutorials assume that you will be using the
>> GenericManager. If you follow them after making this change, you will
>> need
>> to change all the references in their code from the GenericManager to
>> your
>> new PersonManager interface.
>>
>> So with that said one would think that I would change PersonController as
>> follows:
>>
>>     private GenericManager<Person, Long> personManager = null;
>>  to
>>     private PersonManager<Person, Long> personManager = null;
>>
>>     public void setPersonManager(GenericManager<Person, Long>
>> personManager)
>> {
>>         this.personManager = personManager;
>>     }
>>  to
>>     public void setPersonManager(PersonManager<Person, Long>
>> personManager)
>> {
>>         this.personManager = personManager;
>>     }
>>
>> But that is not working....
>>
>> Thanks for the quick response
>>
>>
>>
>> mraible wrote:
>> >
>> > If you're extending GenericManager, you should have access to the CRUD
>> > methods.  Did you look at the bottom of the tutorial, where you write
>> > a PersonManager.java and PersonManagerImpl.java?
>> >
>> > Matt
>> >
>> > On 3/27/07, whyme <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Confused??
>> >>
>> >> Trying to implement GenericMangerImpl to take advantage of CRUD
>> methods
>> >>
>> >> public class PersonManagerImpl extends GenericManagerImpl implements
>> >> PersonManager{
>> >>
>> >> In doing so I now need to create an instance of PersonManager in my
>> >> PersonController but not sure how.
>> >>
>> >> Tutorial shows:
>> >>   private GenericManager<Person, Long> personManager = null;
>> >>
>> >>     public void setPersonManager(GenericManager<Person, Long>
>> >> personManager)
>> >> {
>> >>         this.personManager = personManager;
>> >>     }
>> >>
>> >> But then don't have reference to custom DAO methods in PersonManager.
>> Can
>> >> someone post how this would be done?
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Extending-GenericManager---Spring-MVC-tf3476679s2369.html#a9704566
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Extending-GenericManager---Spring-MVC-tf3476679s2369.html#a9704966
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/file/7469/service.zip service.zip 
-- 
View this message in context: 
http://www.nabble.com/Extending-GenericManager---Spring-MVC-tf3476679s2369.html#a9705090
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to