Re: [appfuse-user] Type safety and generics in Service

2007-02-14 Thread Matt Raible
If you can change your code to use Generics and everything works - we'd be happy to change the tutorial. Matt On 2/14/07, PeteTh <[EMAIL PROTECTED]> wrote: The examples in Tutorial show public class PersonManagerImpl implements PersonManager { private PersonDao dao; declaring the dao li

[appfuse-user] Type safety and generics in Service

2007-02-14 Thread PeteTh
The examples in Tutorial show public class PersonManagerImpl implements PersonManager { private PersonDao dao; declaring the dao like this means the methods have to do a cast :- public Person getPerson(final Long id) { return (Person) dao.get(id); } I though