All Questions
1,467
questions
-1
votes
0
answers
19
views
Orika Mapper map abstract tree Object
I have an abstract tree class:
public abstract class TreeBase {
private String fieldName;
private List<TreeBase > treeNodeChildren = new ArrayList<>();
...
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&...
1
vote
1
answer
22
views
Set property without mapping in mapper Java Mapstruct
I have a mapper like:
Cat toAnotherCat(Cat origin);
And I need an another mapper like that (CatsHouse has a property: Cat oneOfCats;):
CatsHouse toNewCatsHouse(CatsHouse catsHouse)
When I run Maven ...
0
votes
1
answer
44
views
mapstruct, nested classes avoid writing mapper for each nested class
I have source and target classes that look like this
class UserHistorySource {
private DetailsSource details;
}
and
class DetailsSource {
private List<BalanceSource> balance;
private ...
0
votes
0
answers
28
views
Rakuten RMS Product API ジャンルID (Genre ID)
I am trying to develop a system that will be able to push my products on Rakuten online marketplace in Japan with their API.
Their API for that is named Product API, or more recently Item API 2.0.
The ...
1
vote
1
answer
133
views
DTO on hexagonal architecture and DDD
I've a spring application (webservice that connect to a database and retrieve data) using a hexagonal architecture and DDD (Domain-Driven Design).
The basic struture is
Application
Controller to ...
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 ...
1
vote
2
answers
122
views
static java reflection - enum of fields of a class (pre-compilation)
is there a type of reflection in Java that provides simply an enum of the fields in a class?
The information is, afterall, "precompilation-static". Why should it not be compiled into the ...
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/...
1
vote
0
answers
16
views
How to exclude a weaved property from an entity in Spring Data?
I need to globally exclude an AspectJ weaved property from all my persistent entities based on a pattern, i.e. prop name starting with $ajc$instance.
Greetings! I have a question about Spring Data ...
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 ...
0
votes
1
answer
311
views
ModelMapper set destination field to `null` instead of throwing `MappingException`
I'm using a ModelMapper to convert objects from a third party api to my internal system.
The data quality of this api is horrible and i'm not willing to lower mine just for that.
So many fields that ...
1
vote
1
answer
101
views
Mapstruct not mapping attributes correctly/at all
This is my SignUpRequestDTo class:
package ez.ndvz.application.api.v1.dto.authenticationDTOs;
@Data
@Builder
public class SignUpRequestDTO {
@NonNull
@NotBlank
String name;
@NotBlank
...
0
votes
1
answer
598
views
Troubleshooting DTO to Entity Mapping in Java with MapStruct
I'm working on a Java project using the MapStruct library and I'm facing challenges with DTO to entity mapping. My goal is to separate the mapping responsibility for different DTOs and mapper classes.
...
0
votes
1
answer
32
views
How to map an object to another and define an strategy for not found/null properties?
The scenario is the following: I create a resource in other microsservice doing a POST request to it. After some time, I have to update the same resource by sending a PUT request, that is, I have to ...