Skip to content

Commit

Permalink
Issue #3 Repository annotation with JavaDoc outline
Browse files Browse the repository at this point in the history
  • Loading branch information
njr-11 authored and otaviojava committed Sep 14, 2022
1 parent cf063e4 commit b682859
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/src/main/java/jakarta/data/Repository.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
* For example,<p>
*
* <pre>
<<<<<<< HEAD
* &#64;Repository
=======
* &#64;Repository(Product.class)
>>>>>>> 21dacef (Issue #3 Repository annotation with JavaDoc outline)
* public interface Products extends DataRepository<Product, Long> {
* List&lt;Product&gt; findByNameLike(String namePattern);
* ...
Expand Down Expand Up @@ -322,4 +326,8 @@
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Repository {
/**
* Entity class. By default, detect automatically.
*/
Class<?> value() default void.class;
}

0 comments on commit b682859

Please sign in to comment.