Aumentar final a parametros
This commit is contained in:
parent
dc1881ffed
commit
b2fc5663fd
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user