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 like this means the methods have to do a cast :-
public Person getPerson(final Long id) {
return (Person) dao.get(id);
}
I thought the point of using GenericDAO instead of UniversalDAO was to avoid
the cast ?
Isn't it better to declare the dao as :-
private PersonDao<Person, Long> dao;
but I think a cast is still necessary?
Any thoughts appreciated.
--
View this message in context:
http://www.nabble.com/Type-safety-and-generics-in-Service-tf3228950s2369.html#a8970942
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]