Originally posted by Ramon Gill:
Hi all,
Why is DTO an anti-pattern in EJB 3.0 ?
Ray
EJB 3.0 proposes a transparent approach to persistence. That is, entity beans are plain old
Java objects supplemented with annotations that a persistence manager will use to persist the bean. Since the entity bean itself is a plain old Java object, there is no need to use a data transfer object.
I guess that in EJB 3.0 they have tried to remove the need for DTOs. Therefore use of them would be an anti-pattern.
Paul