arreglar-funcionalidad #84
@ -115,7 +115,7 @@ public class Employee extends BaseEntity implements UserDetails {
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Status status;
|
||||
|
||||
public void setCustomContractType(String customContractType) {
|
||||
public void setCustomContractType(final String customContractType) {
|
||||
this.customContractType = customContractType;
|
||||
}
|
||||
|
||||
|
@ -10,12 +10,12 @@ public class MinAgeValidator implements ConstraintValidator<MinAge, LocalDate> {
|
||||
private int minAge;
|
||||
|
||||
@Override
|
||||
public void initialize(MinAge constraintAnnotation) {
|
||||
public void initialize(final MinAge constraintAnnotation) {
|
||||
this.minAge = constraintAnnotation.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValid(LocalDate birthday, ConstraintValidatorContext context) {
|
||||
public boolean isValid(final LocalDate birthday, final ConstraintValidatorContext context) {
|
||||
if (birthday == null) {
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
package com.primefactorsolutions.service;
|
||||
import com.google.common.base.Strings;
|
||||
import com.primefactorsolutions.model.Employee;
|
||||
import jakarta.persistence.EntityManager;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -396,7 +396,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
||||
return textField;
|
||||
}
|
||||
|
||||
private void handleContractTypeChange(Employee.ContractType selectedType) {
|
||||
private void handleContractTypeChange(final Employee.ContractType selectedType) {
|
||||
if (selectedType == Employee.ContractType.OTROS) {
|
||||
customContractType.setVisible(true);
|
||||
customContractType.setRequired(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user