Entity Fields & CollectionNames
Generates enums for raw field names and collections that preserve the raw field names in Mongo entities.
Entity identification
The default webfluxDocumentName is org.springframework.data.mongodb.core.mapping.Document from Spring Data MongoDB. It processes classes with that annotation under the entityPackage.
Creation example
MemberEntityFields.java
javaExploring raw field names
The Java field name is the default, and it reads the value or name of Spring Data @Field, relational/JPA @Column, and Jackson @JsonProperty as strings. Java keywords, names starting with numbers, and special characters are converted to safe enum identifiers while keeping the rawName.
EntityFileWatcher.Config
rootPath
default src/main/java
entityPackage
entity source package
fieldPackage
{Entity}Fields output package
collectionNamePackage
CollectionNames output package
collectionNameEnum
default CollectionNames
webfluxDocumentName
entity identification annotation FQN