arreglar-funcionalidad #84

Merged
alex merged 14 commits from arreglar-funcionalidad into main 2024-11-28 02:52:23 +00:00
4 changed files with 4 additions and 5 deletions
Showing only changes of commit b2fc5663fd - Show all commits

View File

@ -115,7 +115,7 @@ public class Employee extends BaseEntity implements UserDetails {
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
private Status status; private Status status;
public void setCustomContractType(String customContractType) { public void setCustomContractType(final String customContractType) {
this.customContractType = customContractType; this.customContractType = customContractType;
} }

View File

@ -10,12 +10,12 @@ public class MinAgeValidator implements ConstraintValidator<MinAge, LocalDate> {
private int minAge; private int minAge;
@Override @Override
public void initialize(MinAge constraintAnnotation) { public void initialize(final MinAge constraintAnnotation) {
this.minAge = constraintAnnotation.value(); this.minAge = constraintAnnotation.value();
} }
@Override @Override
public boolean isValid(LocalDate birthday, ConstraintValidatorContext context) { public boolean isValid(final LocalDate birthday, final ConstraintValidatorContext context) {
if (birthday == null) { if (birthday == null) {
return true; return true;
} }

View File

@ -1,5 +1,4 @@
package com.primefactorsolutions.service; package com.primefactorsolutions.service;
import com.google.common.base.Strings;
import com.primefactorsolutions.model.Employee; import com.primefactorsolutions.model.Employee;
import jakarta.persistence.EntityManager; import jakarta.persistence.EntityManager;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;

View File

@ -396,7 +396,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
return textField; return textField;
} }
private void handleContractTypeChange(Employee.ContractType selectedType) { private void handleContractTypeChange(final Employee.ContractType selectedType) {
if (selectedType == Employee.ContractType.OTROS) { if (selectedType == Employee.ContractType.OTROS) {
customContractType.setVisible(true); customContractType.setVisible(true);
customContractType.setRequired(true); customContractType.setRequired(true);