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
fix: projection interfaces now work for all field types without @value annotation (#650)
Previously, projection interfaces returned null for non-String fields (Integer, Double,
Boolean, LocalDate, etc.) unless the @value annotation was used as a workaround. This was
due to incomplete handling of field types during projection result processing.
This fix addresses the issue in two places:
1. MappingRedisOMConverter: Added projection interface introspection to determine property
types for proper conversion when processing hash-based repositories
2. RediSearchQuery: Enhanced parseDocumentResult() to handle both full JSON documents and
individual fields returned during projection optimization, with proper type conversion
for booleans (stored as 1/0), dates (stored as timestamps), and other non-String types
The framework now correctly handles all field types in projection interfaces without
requiring the @value annotation workaround.
Fixes#650
0 commit comments