You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Projection of any entity with a Long id field. */publicinterfaceLongIdProjection {
LonggetId();
}
Andthisexampleentity:
publicclassMy {
publicLongid;
publicStringveryLongAndBoringString;
}
I'd like to create this automatically-generated query:
@RepositorypublicinterfaceMyRepositoryextendsJpaRepository<My, Long> {
List<LongIdProjection> findAllIds(Example<My> example);
}
Unfortunately, I get this exception:
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAllIds found for type My!
Could be cool to enable creating custom queries by examples that return a subset of properties of an entity, so we don't ask the database to return a lot of potentially big fields if we are only interested in one or two fields
Affects: 1.11.6 (Ingalls SR6)
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered:
Sébastien Laoût opened DATAJPA-1162 and commented
Given this interface:
Unfortunately, I get this exception:
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAllIds found for type My!
Could be cool to enable creating custom queries by examples that return a subset of properties of an entity, so we don't ask the database to return a lot of potentially big fields if we are only interested in one or two fields
Affects: 1.11.6 (Ingalls SR6)
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: