-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
2,703 additions
and
1,592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...esystem2/InsuranceSystem2Application.java → ...ncesystem/InsuranceSystemApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package aplus.insurancesystem2; | ||
package aplus.insurancesystem; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class InsuranceSystem2Application { | ||
public class InsuranceSystemApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(InsuranceSystem2Application.class, args); | ||
SpringApplication.run(InsuranceSystemApplication.class, args); | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...config/AplusAuthenticationEntryPoint.java → ...config/AplusAuthenticationEntryPoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...esystem2/common/config/P6SpyFomatter.java → ...cesystem/common/config/P6SpyFomatter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...m2/common/converter/EGenderConverter.java → ...em/common/converter/EGenderConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/aplus/insurancesystem/common/converter/EInsuranceTypeConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package aplus.insurancesystem.common.converter; | ||
|
||
import java.util.EnumSet; | ||
|
||
import aplus.insurancesystem.domain.Insurance.entity.insurance.InsuranceType; | ||
import jakarta.persistence.AttributeConverter; | ||
import jakarta.persistence.Converter; | ||
|
||
@Converter(autoApply = true) | ||
public class EInsuranceTypeConverter implements AttributeConverter<InsuranceType, String> { | ||
|
||
@Override | ||
public String convertToDatabaseColumn(InsuranceType insuranceType) { | ||
return insuranceType.getName(); | ||
} | ||
|
||
@Override | ||
public InsuranceType convertToEntityAttribute(String dbData) { | ||
return EnumSet.allOf(InsuranceType.class).stream() | ||
.filter(e -> e.getName().equals(dbData)) | ||
.findAny() | ||
.orElseThrow(IllegalArgumentException::new); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/aplus/insurancesystem/common/converter/EJobConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package aplus.insurancesystem.common.converter; | ||
|
||
import java.util.EnumSet; | ||
|
||
import aplus.insurancesystem.domain.customer.entity.customer.Job; | ||
import jakarta.persistence.AttributeConverter; | ||
import jakarta.persistence.Converter; | ||
|
||
@Converter(autoApply = true) | ||
public class EJobConverter implements AttributeConverter<Job, String> { | ||
|
||
@Override | ||
public String convertToDatabaseColumn(Job job) { | ||
return job.getName(); | ||
} | ||
|
||
@Override | ||
public Job convertToEntityAttribute(String dbData) { | ||
return EnumSet.allOf(Job.class).stream() | ||
.filter(e -> e.getName().equals(dbData)) | ||
.findAny() | ||
.orElseThrow(IllegalArgumentException::new); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/aplus/insurancesystem/common/converter/EPaymentCycleConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package aplus.insurancesystem.common.converter; | ||
|
||
import java.util.Arrays; | ||
|
||
import org.springframework.core.convert.converter.Converter; | ||
import org.springframework.stereotype.Component; | ||
|
||
import aplus.insurancesystem.domain.Insurance.entity.insurauceApplication.PaymentCycle; | ||
|
||
@Component | ||
public class EPaymentCycleConverter implements Converter<String, PaymentCycle> { | ||
|
||
@Override | ||
public PaymentCycle convert(String source) { | ||
return Arrays.stream(PaymentCycle.values()) | ||
.filter(e -> e.getName().equals(source)) | ||
.findAny() | ||
.orElseThrow(IllegalArgumentException::new); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...system2/common/converter/GetCustomer.java → ...esystem/common/converter/GetCustomer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...stem2/common/converter/RoleConverter.java → ...ystem/common/converter/RoleConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ancesystem2/common/dto/ErrorResponse.java → ...rancesystem/common/dto/ErrorResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...cesystem2/common/dto/SuccessResponse.java → ...ncesystem/common/dto/SuccessResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...2/common/exception/BusinessException.java → ...m/common/exception/BusinessException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.