Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export-jdl is not correctly exporting entities #27314

Open
mshima opened this issue Sep 17, 2024 · 0 comments
Open

export-jdl is not correctly exporting entities #27314

mshima opened this issue Sep 17, 2024 · 0 comments

Comments

@mshima
Copy link
Member

mshima commented Sep 17, 2024

.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "jhipsterSampleApplication",
    "blueprints": [],
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "angular",
    "clientPackageManager": "npm",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "clusteredHttpSession": false,
    "creationTimestamp": 1577000812973,
    "databaseType": "sql",
    "devDatabaseType": "h2Memory",
    "devServerPort": 9060,
    "dtoSuffix": "DTO",
    "embeddableLaunchScript": false,
    "enableGradleEnterprise": false,
    "enableHibernateCache": true,
    "enableSocialSignIn": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entities": [
      "BankAccount",
      "Label",
      "Operation"
    ],
    "entitySuffix": "",
    "hibernateCache": "ehcache",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "8.6.0",
    "languages": [
      "en"
    ],
    "messageBroker": false,
    "nativeLanguage": "en",
    "otherModules": [],
    "packageFolder": "io/github/jhipster/sample",
    "packageName": "io.github.jhipster.sample",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": 8080,
    "serviceDiscoveryType": false,
    "skipCheckLengthOfIdentifier": false,
    "skipClient": false,
    "skipFakeData": false,
    "skipServer": false,
    "skipUserManagement": false,
    "testFrameworks": [
      "gatling",
      "cypress"
    ],
    "useCompass": false,
    "useSass": true,
    "websocket": false,
    "withAdminUi": true
  }
}
Environment and Tools

openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment (build 21.0.2+13-58)
OpenJDK 64-Bit Server VM (build 21.0.2+13-58, mixed mode, sharing)

git version 2.34.1

node: v20.15.0
npm: 10.7.0

Docker version 27.1.2, build d01f264

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
@ChangelogDate("20150805124838")
entity BankAccount {
  name String required
  balance BigDecimal required
}
@ChangelogDate("20150805124936")
entity Label {
  label String required minlength(3)
}
@ChangelogDate("20150805125054")
entity Operation {
  date Instant required
  description String
  amount BigDecimal required
}

relationship OneToMany {
  BankAccount{operation} to Operation
}
relationship ManyToOne {
  Operation{bankAccount(name)} to BankAccount{operation}
}
relationship ManyToMany {
  Operation{label(label)} to Label{operation}
}

search BankAccount, Label, Operation with no
paginate Operation with infinite-scroll

BankAccount.json
Operation.json

Originally posted by @vmartowicz in #27065 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant