Im trying to setup a basic CRUD app from this tutorial https://www.javaguides.net/2018/11/spring-mvc-5-spring-data-jpa-hibernate-jsp-mysql-tutorial.ht ...
Im trying to setup a basic CRUD app from this tutorial https://www.javaguides.net/2018/11/spring-mvc-5-spring-data-jpa-hibernate-jsp-mysql-tutorial.ht ...
Consider the following Java hierarchy: I want the whole hierarchy to be stored in a single table named file, except for SpecialOutFile which should ...
Here is the main table: And the table which is ElementCollection in my case: When I do a query with a join fetch, I get Group with all its Membe ...
I have 2 classes similar to this: public class A { @Id @GeneratedValue private long id; @ManyToOne(fetch = FetchType.LAZY) @JoinColu ...
I have the followings at Java level: And the following tables in the DB: When I try to save a WordDoc, the Hibernate fails with the following er ...
I'm saving 2 entries to the same table 1 by 1 with JPA and Hibernate under some Transactional flow chain. the entries are not committed until the tra ...
I need to write the following SQL code in Hibernate criteria query: The only showstopper in this case is the subquery with selection of 2 columns a ...
I have issue deploying a new version of my app in tomcat. I got an exception for class which was an entity with @OneToOne relation to another entity c ...
In a database, an author already contains one book. I create a new book for an author and want to save it. But when the function addBook is called ...
After upgrading to hibernate 6 I am having issues with postgres being able to save enum types. I am no longer able to use @TypeDef annotation as it wa ...
I am working on creating a simple utility that allows our users to execute a pre-selected list of stored procedures that return a simple list result s ...
The entities in my application have a lot of Instant fields. I don't care about time zones, everything is in UTC. I am using Postgresql 13.2. Hibernat ...
In my spring boot project I have a Document class that has a bi-directional OneToOne relationship to an Invoice class, which share the same ID. Docum ...
I'm trying to fetch all rows that have the same patient_id, so I'm doing findAllByPatientId. But I'm always receiving one object in the Listinstead of ...
Request I need to excute a piece of code after every insert in some tables. I don't want to edit every part of the application looking for all place ...
I upgraded the following code from Hibernate 5 to 6.1.6 and get the following exception. It seems hibernate has somehow problems to iterate over the l ...
I am trying to learn JPA and Hibernate. When trying to use the mappedBy annotation to map a access card to an owner of it, the column wont create. I a ...
The past few weeks I've been trying to solve this issue. The indexing works "perfectly" until it doesn't. It is often with large amounts of entities ( ...
What is described below works in Spring Boot 2/Hibernate 5 but stopped working when migrating to Hibernate 6/Spring boot 3. I have an Hibernate manag ...
I have example SprintBoot application My application.properties, here configuration datasource and jpa hibernate and i have simple controller me ...