Java IllegalArgumentException: Cannot set Long field to AquariumEBBean
I have two entity classes, FischEBBean and AquariumEBBean, which have a many-to-one relationship. Both classes use composite primary keys. When executing the findByAquarium method, I receive the following exception:
Hibernate SingleTableEntityPersister – Thousands of instances in heap
I’m running a docker Spring Boot 3.3 and Hibernate 6.5.2 on Amazon Corretto 21. After a few days of running, dumping the heap shows thousands of SingleTableEntityPersister instances, where i only have about 100 tables.
Is Hibernate a Framework? or Library?
I am a student learning Hibernate ORM. Sorry for bad english.
Dynamically generate and register an entity with Hibernate
I want to generate entities on the fly and register such entities with Hibernate at runtime, ideally I would like to do something similarly to what EclipseLink does with its Dynamic persistence: https://wiki.eclipse.org/EclipseLink/Examples/JPA/Dynamic.
For example:
Dinamically generate and register an entity with Hibernate
I want to generate entities on the fly and register such entities with Hibernate at runtime, ideally I would like to do something similarly to what EclipseLink does with its Dynamic persistence: https://wiki.eclipse.org/EclipseLink/Examples/JPA/Dynamic.
For example:
Using Hibernate Criteria framework for complex queries vs. just making views in DB
I like using Hibernate
for regular simple CRUD
operations.
Am I doing it wrong with Hibernate DAO layer? i.e. Feature Bloat
For quick prototyping I have been actively using Hibernate. Recently I came back to an old project and I wondered why I had a lot of DAOs with what I suspect is commonly named feature bloat. E.g.
Am I doing it wrong with Hibernate DAO layer? i.e. Feature Bloat
For quick prototyping I have been actively using Hibernate. Recently I came back to an old project and I wondered why I had a lot of DAOs with what I suspect is commonly named feature bloat. E.g.
Logic based on modified fields of a Hibernate entity
I have a Hibernate entity object MyObject
with several attributes and a service MyObjectService
containing business logic dealing with MyObject
. I also have a view model dealing with user input/output which uses MyOjectService
. This service contains method updateMyObject(MyObject o)
which is called by the view model when user changes some attributes, and it saves these changes into the database.
Logic based on modified fields of a Hibernate entity
I have a Hibernate entity object MyObject
with several attributes and a service MyObjectService
containing business logic dealing with MyObject
. I also have a view model dealing with user input/output which uses MyOjectService
. This service contains method updateMyObject(MyObject o)
which is called by the view model when user changes some attributes, and it saves these changes into the database.