All Questions
8 questions
0
votes
2
answers
136
views
[Spring Boot][REST] Design Pattern Best Practice (Single Entity, multiple business logic implementations)
I have some problems regarding best-practice design between data source layer(Entity), domain layer(Service) and presentation layer (controller):
I have one entity with a type field in the database to ...
1
vote
2
answers
1k
views
Using Factory Design Pattern in Rest Controller of Spring
I used factory design pattern to identify the service according to the enum that comes from the api uri as request param. Everything seems okay according to me but cannot be sure if I used it right.
<...
-1
votes
1
answer
81
views
Using Factory Design Pattern in Spring [closed]
I organized the factory design pattern but I'm not sure if I used it right or wrong.
Here's my data model;
...
2
votes
2
answers
684
views
Loan application service based on user credit score
The following microservice is just handling loan application and response the result of the application is accepted or rejected. It is part of my assignment for an interview.
The project description ...
-3
votes
1
answer
62
views
Some way to create factory pattern for spring application [closed]
I created this code
...
1
vote
1
answer
55
views
Convert automatically into a centralized bean for multiple domain objects
I am creating a project which will respond to collect multiple bean object, save it to the database and return the status of the transaction. There can be multiple objects that can be sent from the ...
0
votes
1
answer
152
views
Refactoring service class which communicates with external API
Below is the class definition which I created as a POC for some project, at present the class does too much thing and I don't know how to what would be a good design i.e. which object to use as DI etc....
1
vote
1
answer
342
views
Class Design : Parsers for different file type and ParserFactory
I have come up with a class design for parsers (for xml,csv etc) and parser factory. I will be using it in my project.I will be configuring these as beans in the spring context file. I would like to ...