Skip to content

Commit 998575f

Browse files
committed
javadoc improvements to an SPI
1 parent 5684680 commit 998575f

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

hibernate-core/src/main/java/org/hibernate/LockOptions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ public LockOptions setTimeOut(int timeout) {
481481
return setTimeout( Timeouts.interpretMilliSeconds( timeout ) );
482482
}
483483

484-
485484
/**
486485
* The current lock scope:
487486
* <ul>

hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryConstructorTransformer.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
import org.hibernate.query.TupleTransformer;
99

1010
import java.lang.reflect.Constructor;
11-
import java.util.List;
1211

1312
/**
14-
* A {@link TupleTransformer} for handling {@link List} results from native queries.
13+
* A {@link TupleTransformer} which packages each native query result in
14+
* an instance of the result class by calling an appropriate constructor.
15+
*
16+
* @implNote The result type must have exactly one constructor with the
17+
* correct number of parameters. Constructors cannot be disambiguated by
18+
* parameter type.
19+
*
20+
* @since 6.3
1521
*
1622
* @author Gavin King
1723
*/

hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryListTransformer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
/**
1212
* A {@link TupleTransformer} for handling {@link List} results from native queries.
1313
*
14+
* @since 6.3
15+
*
1416
* @author Gavin King
1517
*/
1618
public class NativeQueryListTransformer implements TupleTransformer<List<Object>> {

hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryMapTransformer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* A {@link TupleTransformer} for handling {@link Map} results from native queries.
1616
*
17+
* @since 6.3
18+
*
1719
* @author Gavin King
1820
*/
1921
public class NativeQueryMapTransformer implements TupleTransformer<Map<String,Object>> {

0 commit comments

Comments
 (0)