arquillian / continuous-enterprise-development

Testable Solutions for Modern Applications
http://continuousdev.org/
116 stars 150 forks source link

A little bit of over kill on the annotations? #92

Open johnament opened 11 years ago

johnament commented 11 years ago

In the datagrid/nosql chapter, you have an EJB:

@Typed(AttachmentRepository.class)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class AttachmentRepository implements Repository<Attachment> {

This is a little bit overkill, no? CDI cares about the typed annotation, EJB doesn't. Because it's an EJB it's injectable as the type as well as the business interface (granted, you're still exposing the issue that the EJB business interface can't handle generics).

We also don't need the transaction attribute annotation.