19 questions
0
votes
0
answers
55
views
jpa constraint violation message cannot be shown in web tier
I have an old system (java8 jee7 glassfish5 spring5) that includes ejb and web tiers. I recently moved it to new system (java17 jee10 glassfish7 spring6). After all coding and configuration changes I ...
1
vote
0
answers
32
views
Adding a different string to a table fails [duplicate]
When creating a Table type with a single string column and trying to INSERT 2 differents strings make it fails.
First, I created a new Table Type with a single string column:
CREATE TYPE [dbo].[...
0
votes
1
answer
909
views
java.lang.LinkageError: loader constraint violation Jenkins maven
I am testing an upgraded version of Jenkins (from 2.235.1 to 2.375.1). One of my jobs fails with the following error when run in Jenkins Agent with Swarm Client 3.39 (this works perfectly on previou ...
0
votes
0
answers
258
views
handleConstraintViolationException in a controller advice
I use spring boot 3, I search to centralize error handling about validation
public record RepoPubRecord(
@NotEmpty(groups={Intranet.class,Extranet.class}
Long idRepoPub,
...
0
votes
1
answer
107
views
Hibernate do not save entity with last-available ID - ConstraintViolationException
I am having a problem with my code. I have created an entity "Comment" with relations Many-To-Many to entities Movie and User (User may comment many movies, and movie can be commented by ...
0
votes
0
answers
946
views
Jpa entity same record duplicated and making unique key violation
I am using Jpa, my website is shows a form in 3 steps, in every step i'm making save() in many steps :
First save() will create a record A with a primary key id and another unique key userId, data as ...
0
votes
0
answers
173
views
Spring DATA JPA onetoone unidirectional mapping CASCADE.ALL insert duplicate child row, not update
I am writing an Entity class Result, and it has a ONETOONE mapping to another entity UpstreamResult.
When I do a save() method. In a spring boot concurrence situation, sometimes, the child entity get ...
1
vote
1
answer
315
views
Kotlin Hibernate @ManyToOne MERGE violates foreign key constraint (Postgres)
I implemented a @ModelToOne Relationship and would like to use a Dropdown List via Thymeleaf. I use a separate formular to persist PlaceEntities and a formular for WorkEntities where a appropriate ...
0
votes
0
answers
403
views
Django: Value violates not-null constraint, however Value is not part of the model being created
When creating a new "Cast" record via the Django admin, I'm told "image_cover" attribute is null, but that attribute isn't even a part of the "Cast" model. Why would this happen?
The Error:
django....
0
votes
1
answer
569
views
How to handle custom annotation while adding @valid in service class
I am using custom validation in entity class, @Valid annotation on service class not in controller class and custom exception controller(@ControllerAdvice) in Spring Boot.
When I am using @Valid in ...