Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

I have a test case that tests all the DAOs in my project. It uses openpojo to get the list of all DAO classes. The test case then iterates over the list of DAO classes and invokes all methods in them ...
siddhant's user avatar
0 votes
0 answers
62 views

In a Spring Boot 2.7.x application with Hibernate/JPA, there are two tables: tickets complaint_id (PK, VARCHAR(255)) attachment complaint_id (FK, VARCHAR(255)) other fields: id, file_name, ...
RaviSai1819's user avatar
0 votes
1 answer
94 views

I'm migrating from Spring Boot 2.7 to Spring Boot 3.3.13. This means that I'm migrating even from Hibernate 5 to Hibernate 6. I'm having an annoying problem when I start my Spring Application about ...
Removed's user avatar
1 vote
0 answers
75 views

Working on a scalable custom ID generator in JPA. The format I want to achieve is: <first three letters of country or region> + <year> + <sequence number> For example: USA2025001 I'm ...
RaviSai1819's user avatar
5 votes
1 answer
147 views

Quick background information for context: I'm writing a relatively small tool for a small gaming community to download and manage user generated content. It's a modular Java 24 + JavaFX Project done ...
GenerationLost's user avatar
1 vote
1 answer
83 views

how do I resolve that error? Thank to all answers. org.springframework.orm.jpa.JpaSystemException: could not execute statement [Field 'price_id_price_id' doesn't have a default value] [insert into ...
ReMadWeb's user avatar
1 vote
1 answer
47 views

I am trying to make the redis sentinel pods in my cluster as my L2 cache for hibernate JPA. I am using wildfly 32.0.1.Final server with my deployment structure having a ear with a lib and a META-INF ...
Kitret's user avatar
  • 31
2 votes
0 answers
47 views

I'm using Hibernate Envers to audit a @OneToMany relationship between two entities: ParentEntity and ChildEntity. I am not using @ManyToOne on the ChildEntity side. Instead, I store the foreign key ...
Самир Шахмурадлы's user avatar
3 votes
3 answers
171 views

I couldn't find a definitive best practice for this, so I’m hoping the discussion helps others as well. In a traditional setup (without Keycloak), we keep an application-level User entity with JPA ...
Karl Bauer's user avatar
2 votes
1 answer
70 views

We use Postgres jsonb_agg function in criteria query API like this: cb.function( JSONB_AGG_FUNCTION_NAME, JsonNode.class, someJoin.get(someField) ...
Роман Григорьев's user avatar
0 votes
1 answer
42 views

I defined a Hibernate Filter to filter out the deleted records. My wishlist: The Filter should be enabled all the time as default. Only in special cases when I need the deleted records, then I would ...
deadpoint's user avatar
  • 461
1 vote
0 answers
42 views

I have two tables. -- child id key (VARCHAR, UNIQUE) ---------------------------------- 0 'a' 1 'b' -- parent id child_keys (JSON) ---------------------------...
Jin Kwon's user avatar
  • 22.4k
2 votes
2 answers
105 views

I created the tables Person, PersonExtra, PersonBasic, etc. in my database with the superclass Person and subclasses PersonExtra and PersonBasic. @Entity @Table(name = "person") @Inheritance(...
gustavo's user avatar
  • 22
2 votes
0 answers
84 views

Say I have a model with a many to many or many to one relationship. This model would like this: @Entity public class A { // other fields ... @OneToMany(...) private List<B> bEntities = ...
Özgür Güzeldereli's user avatar
1 vote
1 answer
42 views

Working on this huge DAQ project made with GWT(mariaDB as db) , my main purpose is to replace some UI components and with them, their functionalities(for this case, users management , where you can ...
Gigea Nicusor's user avatar
2 votes
0 answers
115 views

After upgrading from Hibernate 5 to Hibernate 6, a native query that used to work now fails with an “ORA-17006: Invalid column name” error. Entity definitions Base class: @Entity @Table(name = "...
Maksson's user avatar
  • 23
1 vote
0 answers
27 views

I am using a java-scala project and have configured the RedissonClient programmatically: public class RedissonConfigurationFactory extends RedissonRegionFactory{ private static RedissonClient ...
Vishal Dubey's user avatar
1 vote
2 answers
59 views

I am migrating a project from Spring Boot 2.7.18 to Spring Boot 3, and this causes a Hibernate upgrade as well from Hibernate 5.6 to Hibernate 6.1.7. I had a rather complicated criteria query. After ...
riskop's user avatar
  • 1,839
0 votes
1 answer
121 views

I have a Spring project with a PostgreSQL database. I'm trying to add a custom dialect, but I've noticed that Spring is not loading it. My dialect: package org.company.configuration; public class ...
SlimenTN's user avatar
  • 3,614
0 votes
0 answers
113 views

I got this following error. I'm using Hibernate 6 and Spring Boot 3.5.6. I've already set the spring.datasource.url in my application.yml file. The username and password are already correct. Am I ...
CherryBelle's user avatar
  • 1,432
0 votes
1 answer
84 views

We have a parent pom that imports the quarkus-bom via: <quarkus.platform.version>3.27.0</quarkus.platform.version> and <dependencyManagement> <dependencies> ...
Bart Crets's user avatar
0 votes
1 answer
77 views

I have the following scenario: class A { @OneToMany(mappedBy = "a", cascade = {CascadeType.PERSIST}) List<B> bsOfA; @OneToMany(mappedBy = "a", cascade = {CascadeType....
Guppy_00's user avatar
  • 307
0 votes
1 answer
93 views

i have few methods that need to be iterated in new transactions but facing errors when i try to write unit tests for them @Inject private SchedulerUtil schedulerUtil; @Inject private ...
Udara Nayana's user avatar
0 votes
1 answer
67 views

I have a table (product) as follows which holds product related data @Entity @Table(name = "product") public class ProductEntity { @Id @GeneratedValue(strategy = GenerationType....
Kasun Siyambalapitiya's user avatar
1 vote
0 answers
94 views

I am migrating Hibernate in Helidon from version 6.3.1.Final to version 6.6.23.Final, and a new error started to happen with native image: Error: Classes that should be initialized at run time got ...
ravenskater's user avatar

1
2 3 4 5
1903