Comments (4)
Suggest a Fix
In the Parent entity, add the following configuration
cascade = CascadeType.REMOVE, orphanRemoval = true
to
@OneToOne(fetch = FetchType.LAZY, mappedBy = "parent")
"normally" the @onDelete
is something that's happening on database level. I wonder, why it isn't the case in this special situation.
from generator-jhipster.
JHipster has completed the sample check
.yo-rc.json
:
Entities JDL:
Application: successfully generated
Frontend check: skipped
Backend check: skipped
E2E check: skipped
This check uses jhipster info
output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.
from generator-jhipster.
For the User one-to-one case, the annotation @onDelete("CASCADE") initiates a cascade operation within the DB schema. This approach, while functional, is somewhat of a workaround, likely stemming from the "immutable" constraint of the built-in entity User, rather than the standard procedure for cascade operations in JPA/Hibernate. If this annotation serves solely as a workaround, it should be clearly documented as such.
In the context of open source collaboration, it's essential to respect the design and functionality of dependent projects. While it's acceptable to propose changes or improvements, directly altering the behavior of another open-source project is generally discouraged.
from generator-jhipster.
Related Issues (20)
- mvn liquibase:diff does not work in jhipster 8.2.1
- adminAuthority translation is deleted from global.json after importing jdl HOT 1
- Evaluate `insight` dependency. HOT 3
- Implement `java/node`, `java/jib`, `java/code-quality`, `maven/frontend-plugin`, `maven/code-quality`, `maven/jib` generators to be reused in micronaut and quarkus blueprints.
- Spring security + Keycloak = access denied infinite loop
- Keycloak realm configuration is broken HOT 1
- Enums should be treated as an application resource instead of field type.
- Add support for Spring Cloud Gateway MVC HOT 17
- Release 8.3.0 with vulnerabilities fixed in Spring Boot 3.2.4 HOT 7
- DTO classes are generated without javadoc comments and without @Schema HOT 1
- Unnecessary imports added in 7.9.4 HOT 6
- [Angular] Console warnings happen when running tests in `main.component.spec.ts`
- LazyInitializationException for authorities with Elasticsearch HOT 3
- Error creating a basic application with Jhipster 8.3.0 HOT 4
- Unable to start application generated with jhipster 8.3.0 in prod profile HOT 7
- Vue: Blank Parent column in Child entity list for both one-to-one and many-to-one relationships HOT 7
- Migrate React to Vite HOT 2
- extract client/vite generator and add support to react.
- Add spring-boot/graalvm generator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-jhipster.