fix #123 allow to specify extra annotations on repositories/methods
[yosql.git] / yosql-testing / yosql-testing-configs / src / main / java / wtf / metio / yosql / testing / configs / AnnotationsConfigurations.java
blobaf4008eca5de0355e710a10ba77d3570cb7cecaf
1 /*
2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
8 package wtf.metio.yosql.testing.configs;
10 import wtf.metio.yosql.models.configuration.GeneratedAnnotationApis;
11 import wtf.metio.yosql.models.immutables.AnnotationsConfiguration;
13 /**
14 * Object mother for {@link AnnotationsConfiguration}s.
16 public final class AnnotationsConfigurations {
18 public static AnnotationsConfiguration defaults() {
19 return AnnotationsConfiguration.usingDefaults()
20 .setAnnotateClasses(true)
21 .setAnnotateFields(true)
22 .setAnnotateMethods(true)
23 .build();
26 public static AnnotationsConfiguration generated() {
27 return AnnotationsConfiguration.copyOf(defaults())
28 .withAnnotationApi(GeneratedAnnotationApis.ANNOTATION_API);
31 private AnnotationsConfigurations() {
32 // factory class