Skip to main content

All Questions

Tagged with
0 votes
0 answers
24 views

How to Convert a Complex SQL Query to Hibernate Criteria API

I'm learning about Hibernate's Criteria API and would like to know how to convert this particular SQL query to Criteria API. Here is the SQL query I’m working with: select s1.score as score,count(s1....
random guy's user avatar
-1 votes
1 answer
67 views

java.lang.ClassNotFoundException: Could not load requested class : charset

I am attempting to add spring data jpa to an existing spring boot 2.7.3 web app. We're using hibernate 5.6.9. I've added spring data jpa as a maven dependency via the spring-boot-starter-data-jpa ...
Zack Macomber's user avatar
-1 votes
0 answers
20 views

Nested @TenantId in Hibernate / Spring JPA

the Hibernate feature @TenantId looks very promising for my use case. I'm wondering if it's possible to apply the automatic-tenantId-setting on nested tenants like: tenant1 sub-tenant1.1 sub-tenant1....
Alex Schmidt's user avatar
1 vote
1 answer
28 views

Using Docker for I receive - java.net.ConnectException: Connection refused - applications running on 8088,8089 and DB running on 5432 [duplicate]

I use Docker-Compose for DB container and it is running on 5432 (default port). and also I created two services on Spring boot which are running on 8088 and second on 8089 ports. The DB and Services ...
Артём Орёл's user avatar
-2 votes
0 answers
112 views

Unable to open JDBC Connection for DDL execution ["encrypt" property is set to "true" and "trustServerCertifi

10:12:20 PM: Executing ':ReportingApplication.main()'... > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :ReportingApplication.main() ...
Ruslan Şirbidov's user avatar
1 vote
0 answers
47 views

Caused by: org.springframework.data.mapping.PropertyReferenceException: No property 'containing' found for type 'String';

I am building a system to search series and store in my database, but when I tring to search a list of names of genres the flowing error is throw: Error org.springframework.beans.factory....
Vitor Hugo's user avatar
0 votes
0 answers
25 views

dao.FindAll().size assertion started to fail after migrating to Spring Boot 3.0

I am migrating Spring Boot application from version 2.7 to version 3.0. After modifications made in pom.xml, big part of my unit tests in Groovy classes started to fail. In some cases, there were ...
JavaStratocaster's user avatar
0 votes
1 answer
83 views
+100

Hibernate does not find sequence across multiple databases of same server when ddl-auto is set to validate

Environment: Spring Boot version: 3.2.1 with Hibernate-Core 6.4.1.Final Also tested with 3.3.1 with Hibernate-Core 6.5.2.Final Database: MS SQL Server with multiple accessible databases Issue: I have ...
Apodeus's user avatar
  • 33
2 votes
2 answers
64 views

Spring Boot 3.2.7, Java 17: Migration issue with Timestamp filed used in query

I have Entity class where I have private Timestamp startDate;private Timestamp endDate; field which is mapped to start_date, end_date -> timestamp with time zone in PostgreSQL table. After ...
Aniii Ani's user avatar
0 votes
0 answers
20 views

Stop scanning of hyperistence

How can I disable scanning in Hibernate for my Spring Boot project to improve application deployment time and speed? I need to reduce my deployment time.
saridesurya's user avatar
1 vote
0 answers
32 views

Spring jpa Hibernate ManyToOne association loading EAGERLY even if FetchType.LAZY

I have a unidirectional ManyToOne relation which is declared as FetchType.lAZY , But when i query using Spring jpa repo (query dsl) findAll() , ManyToOne is eagerly loaded even if DTO layer does not ...
nanditha b's user avatar
-1 votes
1 answer
47 views

Hibernate failing to insert parent of ManyToMany relationship when it contains a child not currently in the join table

I'm trying to insert a new Item entity which has a Set of Tag children. However, if one of the Tags does not exist in the join table already, the transaction fails with this error: org.hibernate....
iducam's user avatar
  • 79
-2 votes
1 answer
51 views

Hibernate forces foreign key to be non-null

I want a Product to have an optional ProductType. But during schema generation, Hibernate for some reason ignores my definition and creates a non-nullable column for a foreign-key. We are using ...
Japu_D_Cret's user avatar
-1 votes
0 answers
20 views

Hibernate HQL query validation error for join-fetch with conditional logic

I'm encountering an issue with a Hibernate HQL query where I'm trying to use conditional logic within a join fetch clause. Here's my query and entity setup: I have two entities LovMst and LovVal with ...
Farha Mansuri's user avatar
1 vote
0 answers
43 views

Column <name> is of type json but expression is of type smallint[]

There is field of json type in postgres db named data_processing_steps. It's defined in category entity as @Type(JsonType.class) @Column(columnDefinition = "json") private Set<...
Lesha Pipiev's user avatar
  • 3,301

15 30 50 per page
1
2 3 4 5
1598