Comments (3)
That's a one-to-many table relationship according to the database. The parent mapping is also going to cause performance issues unless bytecode enhancement is used, so the warning is valid.
You can always filter events that you think are fine for your application.
from hypersistence-optimizer.
It's not one-to-many. It's missing unique because there can be only one null in unique index. It's optional one-to-one (see nullable=true
and optional=true
). Shouldn't Hibernate treat it differently?
from hypersistence-optimizer.
It is one-to-many from a database perspective. You should enforce constraints at DB level, not in your application or via annotations.
from hypersistence-optimizer.
Related Issues (20)
- Unable to start the tool with Jboss EAP 7.3 HOT 8
- Support for Micronaut HOT 2
- [QUARKUS 3] The Hibernate SessionFactory is not decorated by Hypersistence Optimizer, and, for this reason, the runtime checks will be disabled HOT 5
- Improve the Grails docs to include a GitHub repository with an example HOT 1
- Hibernate62MappingScanner throws ClassCastException when using OneToOne mapping referencing an IDENTITY column HOT 7
- Add support for Hibernate 6.3 HOT 1
- Add support for detecting when loading in the Persistence Context multiple entities mapped to the same tables HOT 1
- ClassNotFoundException: org.hibernate.type.descriptor.converter.internal.NamedEnumValueConverter HOT 1
- NullCollectionEvent is triggered for entities that use the Bytecode Enhancement lazy loading HOT 5
- Add support for Hibernate 6.4 HOT 1
- Prevent the DataSourceConnectionProviderEvent if the QuarkusConnectionProvider is used HOT 1
- ClassNotFoundException - Hibernate63SessionFactoryBuilderFactory is missing in the 2.8.0 library version HOT 9
- IllegalAccessError while loading ApplicationContext HOT 3
- Hypersistence EventListener Session unwrapping fails in JTA environment HOT 6
- Investigate the integration with Hibernate Query Validator
- SecondaryQueryEntityFetchingEvent is not triggered for bidirectional OneToOne associations HOT 1
- Prevent the OneToOneParentSideEvent if the optional attribute is set to false HOT 1
- Add support for Hibernate 6.5 HOT 1
- OneToOneWithoutMapsIdEvent is not applicable when parent and child are the same class/table HOT 1
- TableRowAlreadyManagedEvent is triggered for entities using SINGLE_TABLE inheritance HOT 6
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 hypersistence-optimizer.