#1256: HibernateSearchFieldInfo.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/api/impl/HibernateSearchFieldInfo.kt Search Metadata (Field-level), projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/api/impl/HibernateSearchFieldInfo.kt 113 lines · 64 code · 36 comments · 13 blank
Represents metadata for a single search field discovered by HibernateSearchClassInfo. Tracks Hibernate Search annotations (@FullTextField, @GenericField), the Lucene field name (which may differ from the Java property name), and field capabilities: string search support, numeric search support, and class bridge detection.

Architecture

Properties

PropertyTypeDescription
javaPropStringOriginal Java property name
typeClass<*>Java type of the field
luceneFieldStringLucene field name (from annotation name or javaProp)
idPropertyBooleanTrue if annotated with @DocumentId or is an embedded DO id
persistentFieldBooleanTrue if exists in Hibernate meta-model

Key Methods

MethodDescription
isStringSearchSupported()String type or class bridge
isNumericSearchSupported()Int, Long, Short types
isClassBridge()Type is ClassBridge
add(annotation)Registers annotation and extracts lucene field name

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
7957637da Migration stuff in progress... (all tests of all packages: OK).
cb5cd5d3d Migration stuff in progress...
c4950ae12 Migration stuff in progress...