Skip to content

Error generating entities from JDL file in a project with Caffeine cache #33547

Description

@josueaguilerasantos93
Overview of the issue

Error generating entities from JDL file in a project with Caffeine cache:

ERROR! An error occured while running jhipster:spring-boot:cache#customizeFiles
ERROR! ERROR! Error editing file ...\src\main\java\com\mycompany\jhipster9\config\CacheConfiguration.java: Missing required jhipster-needle caffeine-add-entry not found at '...\src\main\java\com\mycompany\jhipster9\config\CacheConfiguration.java' at Error: Missing required jhipster-needle caffeine-add-entry not found at '...\src\main\java\com\mycompany\jhipster9\config\CacheConfiguration.java'

Motivation for or Use Case

The entity generation breaks.

Reproduce the error
  • Create a JH project selecting Caffeine for cache.
  • Import a JDL file with any entity definition.
Related issues

I didn't find anyone.

Suggest a Fix

FIX: append " - JHipster will add cache entries here" to // jhipster-needle-caffeine-add-entry in CacheConfiguration.java as follows:
// jhipster-needle-caffeine-add-entry - JHipster will add cache entries here

JHipster Version(s)

9.0.0

Browsers and Operating System

Windows 11

  • Tickets opened without reproduction steps or that don't follow the template recommendation will be closed.
  • This issue is prompt-related or an error that prevents JHipster from generating an application.
  • I don't have a JDL otherwise I should open an JDL Issue
  • The application is not successfully generated otherwise, I should open an Issue with jhipster info
  • Checking this box is mandatory (this is just to show you read everything)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions