@@ -102,12 +102,12 @@ public void shouldCreateStoredProcedureAttributesFromProcedureMethodWithExplictP
102
102
assertThat (attr .getOutputParameterType (), is (typeCompatibleWith (Integer .class )));
103
103
assertThat (attr .getOutputParameterName (), is (StoredProcedureAttributes .SYNTHETIC_OUTPUT_PARAMETER_NAME ));
104
104
}
105
-
105
+
106
106
@ Test // DATAJPA-1297
107
107
public void shouldCreateStoredProcedureAttributesFromProcedureMethodWithExplictProcedureNameAliasAndOutputParameterName () {
108
108
109
- StoredProcedureAttributes attr = creator
110
- . createFrom ( method ("explicitPlus1inoutViaProcedureNameAliasAndOutputParameterName" , Integer .class ), entityMetadata );
109
+ StoredProcedureAttributes attr = creator . createFrom (
110
+ method ("explicitPlus1inoutViaProcedureNameAliasAndOutputParameterName" , Integer .class ), entityMetadata );
111
111
112
112
assertThat (attr .getProcedureName (), is ("plus1inout" ));
113
113
assertThat (attr .getOutputParameterType (), is (typeCompatibleWith (Integer .class )));
@@ -164,7 +164,8 @@ private static Method method(String name, Class<?>... paramTypes) {
164
164
/**
165
165
* @author Thomas Darimont
166
166
*/
167
- static interface DummyRepository {
167
+ @ SuppressWarnings ("unused" )
168
+ interface DummyRepository {
168
169
169
170
/**
170
171
* Explicitly mapped to a procedure with name "plus1inout" in database.
@@ -178,18 +179,19 @@ static interface DummyRepository {
178
179
@ Procedure (procedureName = "plus1inout" ) // DATAJPA-455
179
180
Integer explicitPlus1inoutViaProcedureNameAlias (Integer arg );
180
181
181
- /**
182
- * Explicitly mapped to a procedure with name "plus1inout" in database via alias and explicitly named ouput parameter.
182
+ /**
183
+ * Explicitly mapped to a procedure with name "plus1inout" in database via alias and explicitly named ouput
184
+ * parameter.
183
185
*/
184
186
@ Procedure (procedureName = "plus1inout" , outputParameterName = "res" ) // DATAJPA-1297
185
187
Integer explicitPlus1inoutViaProcedureNameAliasAndOutputParameterName (Integer arg );
186
-
188
+
187
189
/**
188
190
* Implicitly mapped to a procedure with name "plus1inout" in database via alias.
189
191
*/
190
192
@ Procedure // DATAJPA-455
191
193
Integer plus1inout (Integer arg );
192
-
194
+
193
195
/**
194
196
* Explicitly mapped to named stored procedure "User.plus1IO" in {@link EntityManager}.
195
197
*/
@@ -209,9 +211,10 @@ static interface DummyRepository {
209
211
Integer plus1inoutWithComposedAnnotationOverridingName (Integer arg );
210
212
}
211
213
214
+ @ SuppressWarnings ("unused" )
212
215
@ Procedure
213
216
@ Retention (RetentionPolicy .RUNTIME )
214
- static @interface ComposedProcedureUsingAliasFor {
217
+ @interface ComposedProcedureUsingAliasFor {
215
218
216
219
@ AliasFor (annotation = Procedure .class , attribute = "value" )
217
220
String dbProcedureName () default "" ;
0 commit comments