doc-architect/doc-architect-core/src/main/java/com/docarchitect/core/scanner/impl/java/JpaEntityScanner.java [203:230]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            String primaryKey = null;

            for (FieldDeclaration fieldDecl : classDecl.getFields()) {
                Optional<AnnotationExpr> relationshipAnnotation = fieldDecl.getAnnotations().stream()
                    .filter(ann -> RELATIONSHIP_ANNOTATIONS.contains(ann.getNameAsString()))
                    .findFirst();

                if (relationshipAnnotation.isPresent()) {
                    extractRelationship(fieldDecl, fullyQualifiedName, relationshipAnnotation.get(), relationships);
                } else {
                    DataEntity.Field field = extractField(fieldDecl);
                    if (field != null) {
                        fields.add(field);
                        if (isIdField(fieldDecl) && primaryKey == null) {
                            primaryKey = field.name();
                        }
                    }
                }
            }

            DataEntity entity = new DataEntity(
                fullyQualifiedName,
                tableName,
                entityType,
                fields,
                primaryKey,
                description
            );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



doc-architect/doc-architect-core/src/main/java/com/docarchitect/core/scanner/impl/java/JpaEntityScanner.java [389:416]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            String primaryKey = null;

            for (FieldDeclaration fieldDecl : classDecl.getFields()) {
                Optional<AnnotationExpr> relationshipAnnotation = fieldDecl.getAnnotations().stream()
                    .filter(ann -> RELATIONSHIP_ANNOTATIONS.contains(ann.getNameAsString()))
                    .findFirst();

                if (relationshipAnnotation.isPresent()) {
                    extractRelationship(fieldDecl, fullyQualifiedName, relationshipAnnotation.get(), relationships);
                } else {
                    DataEntity.Field field = extractField(fieldDecl);
                    if (field != null) {
                        fields.add(field);
                        if (isIdField(fieldDecl) && primaryKey == null) {
                            primaryKey = field.name();
                        }
                    }
                }
            }

            DataEntity entity = new DataEntity(
                fullyQualifiedName,
                tableName,
                entityType,
                fields,
                primaryKey,
                description
            );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



