micronaut-data
micronaut-data copied to clipboard
Documentation For TransactionalAdvice My Be Misleading
Issue description
The documentation at https://github.com/micronaut-projects/micronaut-data/blob/eb4157cf7b5bdf918bdddc81a8b59ba905a40f40/data-tx/src/main/java/io/micronaut/transaction/annotation/TransactionalAdvice.java#L27-L35 contains the following:
/**
* Meta annotation that other transactional annotations like Spring's and {@code javax.transaction.Transactional} map
* to such as to enable transactional advice. Shouldn't be used directly.
*
* <p>This annotation is declared with a target of {@link ElementType#ANNOTATION_TYPE} so that is used only as a meta-annotation. In actual code you would use {@code javax.transaction.Transaction}</p>
*
* @author graemerocher
* @since 1.0
*/
I think that is mis-leading. The annotation is marked wit @Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.TYPE})
.