mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 08:05:05 +00:00
add a test and a comment
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
e43ae41f2d
commit
baa24d6889
@ -1,6 +1,7 @@
|
||||
package org.hibernate.processor.test.data.eg;
|
||||
|
||||
import jakarta.data.repository.BasicRepository;
|
||||
import jakarta.data.repository.Find;
|
||||
import jakarta.data.repository.Query;
|
||||
import jakarta.data.repository.Repository;
|
||||
|
||||
@ -10,4 +11,7 @@
|
||||
public interface Publishers extends BasicRepository<Publisher,Long> {
|
||||
@Query(" ")
|
||||
Stream<Publisher> all();
|
||||
|
||||
@Find
|
||||
Publisher find(Long id);
|
||||
}
|
||||
|
@ -1451,7 +1451,8 @@ else if ( returnType.getKind() == TypeKind.DECLARED ) {
|
||||
}
|
||||
else {
|
||||
if ( containerType != null ) {
|
||||
// multiple results, it has to be a criteria finder
|
||||
// multiple results, so it has to be a criteria finder
|
||||
// or, alternatively, Optional, which for now we treat similarly
|
||||
createCriteriaFinder( method, declaredType, containerType.toString(), entity );
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user