When saving an entity which has relationship to user, and letting user empty, it failed
we should be able to save entity without user
Related to https://github.com/jhipster/generator-jhipster/pull/12777
current master
[email protected] /home/pgrimaud/tmp/28-react-oauth2
└── (empty)
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
{ "generator-jhipster": { "blueprints": [], "otherModules": [], "applicationType": "monolith", "reactive": false, "baseName": "burger", "jhipsterVersion": "6.10.3", "skipClient": false, "skipServer": false, "skipUserManagement": true, "skipCheckLengthOfIdentifier": false, "skipFakeData": false, "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "clientPackageManager": "npm", "testFrameworks": ["cypress"], "pages": [], "creationTimestamp": 1603014850708, "promptValues": { "packageName": "io.github.pascalgrimaud", "nativeLanguage": "en" }, "serviceDiscoveryType": false, "authenticationType": "oauth2", "packageName": "io.github.pascalgrimaud", "serverPort": "8080", "cacheProvider": "ehcache", "enableHibernateCache": true, "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "postgresql", "buildTool": "maven", "serverSideOptions": [], "websocket": false, "searchEngine": false, "messageBroker": false, "enableSwaggerCodegen": false, "clientFramework": "react", "clientTheme": "none", "enableTranslation": true, "nativeLanguage": "en", "packageFolder": "io/github/pascalgrimaud", "clientThemeVariant": "primary", "useSass": true, "languages": ["en"] } }
entityName.json
files generated in the .jhipster
directory
JDL entity definitions
entity Operation { date Instant required description String amount BigDecimal required } entity BankAccount { name String required guid UUID bankNumber Integer agencyNumber Long lastOperationDuration Float meanOperationDuration Double meanQueueDuration Duration balance BigDecimal required openingDay LocalDate lastOperationDate Instant active Boolean accountType BankAccountType attachment AnyBlob description TextBlob } entity Label { labelName String required minlength(3) } enum BankAccountType { CHECKING, SAVINGS, LOAN } relationship OneToMany { BankAccount{operation} to Operation{bankAccount(name)} } relationship ManyToOne { BankAccount{user(login)} to User } relationship ManyToMany { Operation{label(labelName)} to Label{operation} } paginate Operation with infinite-scroll paginate Label with pagination clientRootFolder Operation, BankAccount, Label with test-root dto BankAccount with mapstruct service BankAccount with serviceImpl service Label with serviceClass angularSuffix BankAccount with mySuffix filter BankAccount readOnly Label
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
git version 2.28.0
node: v12.19.0
npm: 6.14.8
yeoman: 3.1.1
Docker version 19.03.8, build afacb8b7f0
docker-compose version 1.27.3, build 4092ae5d
INFO! Congratulations, JHipster execution is complete!
Good, it's fixed in main branch. Thanks a lot @qmonmert ! Don't forget to claim your bounty
I claim my money :) @pascalgrimaud https://opencollective.com/generator-jhipster/expenses/26558
@qmonmert : approved