Skip to main content

All Questions

Tagged with
0 votes
1 answer
78 views

how to redirect the 400 error in tomcat 9 version with custom error page

i tried to redirect the 400 error with my custom error page but its not working. 400 only not redirect, 404 and 500 its working fine 1: <error-page> <error-code>400</error-code&...
Ganesh Kumar's user avatar
1 vote
1 answer
24 views

Hibernate problem in Oracle handling edge Double values

I'm testing the handling of basic Java values with Hibernate and Oracle. I have an Oracle table with a binary_double column, and I want to insert from Java the value Double.MAX_VALUE, which happens to ...
Ricardo Hoyos's user avatar
0 votes
0 answers
107 views

Mapping Tuple from Native Query Result to DTO in Spring Data JPA

I'm trying to map the results of a native SQL query executed through Spring Data JPA to a Data Transfer Object (DTO) class. The query retrieves data from two related tables: Data and Address. Here are ...
Yadier Betancourt Martínez's user avatar
0 votes
0 answers
54 views

Jpa and Hibernate could not determine recommended JdbcType for my Java type 'com.marketgb.productgb.Distribution'

I am having this error here below: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/...
Winston Oge's user avatar
0 votes
0 answers
52 views

org.hibernate.persister.entity.SingleTableEntityPersister

I am deploying application with jdk 21 and getting this exception while in another pc it is working properly but in another i am getting this exception 09:06:56,080 ERROR [stderr] (ServerService ...
user23158841's user avatar
0 votes
1 answer
178 views

Error when inserting user with Enum role into PostgreSQL database

I am encountering an issue when attempting to insert a new user with a role into my PostgreSQL database. I have a Spring Boot application where users are represented by a UserEntity class, and each ...
Muhammadoufi's user avatar
0 votes
0 answers
19 views

How can I mapping an enum if it contains the "-" character?

enter image description hereI can't mapping enum in my entity class Film Class Film: @Column(name = "rating", nullable = false) @Enumerated(EnumType.ORDINAL) private Rating rating; ...
DANCHENSKI's user avatar
0 votes
1 answer
34 views

OneToOne relationship - where should be Id

There is many question about oneToOne or OneToMany but I can not get answer why my app does not save id. I have two entities: @Entity Person { private String id; private String Name; ... } ...
Lulex97's user avatar
0 votes
1 answer
41 views

Hibernate cannot determine mapping of some class in some table for some column, I get an org.hibernate.MappingException: Could not determine type for

I am learning Hibernate. However, I have come across this error: <<< FAILURE! org.hibernate.MappingException: Could not determine type for: "some className", at table: "some ...
Shemuel's user avatar
  • 21
0 votes
1 answer
245 views

How to map a List of enum into a Varchar using Hibernate 6.2

I'm currently trying to make a custom Hibernate Type to map a List of Enum into a Varchar of comma-separated elements. For that, I've written my own JavaType (old JavaTypeDescriptor) and my own ...
Snaydil's user avatar
  • 11
0 votes
1 answer
429 views

Parent-Child relationship problem with mapstruct and hibernate when the child is changed

In a REST API project using Jakarta JAX-RS, we use mapstruct to map DTO to Hibernate entities, and we are encountering a problem with parent-child relationships. Let's call two classes Parent and ...
Xavier Portebois's user avatar
0 votes
0 answers
25 views

After saving parent entity I am losing child entity data even I sent child data in payload

The Main Entity Student_table and Associated entities are Address, Student_Examinations and Student_Course_table so on..... In payload I sent Main entity along with Student_Examinations and ...
Venkatesulu Dommara's user avatar
15 votes
6 answers
17k views

class org.hibernate.mapping.BasicValue cannot be cast to class org.hibernate.mapping.ToOne

This is the error that occurs when i try to execute my spring boot api to generate the database : org.springframework.beans.factory.BeanCreationException: Error creating bean with name '...
Yahia Benzeid's user avatar
0 votes
1 answer
175 views

Why am I getting a JPA @OneToOne Unknown Entity Error?

I am getting the error "org.hibernate.AnnotationException: @OneToOne or @ManyToOne on ca.allauto.ups.model.Vehicle.modelId references an unknown entity: java.lang.Long" for the following ...
Rob Gravelle's user avatar
1 vote
2 answers
51 views

Java (JPA) and table column defaults

I would very much appreciate your advice on the JPA. We have a database (PostgreSQL engine), and for tables it happens that a column has its DEFAULT. The database is connected to a Java backend (with ...
Lubos Jansky's user avatar

15 30 50 per page
1
2 3 4 5
50