All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ag.orbia.common.javax.annotations.Date.kt Maven / Gradle / Ivy

package ag.orbia.common.javax.annotations

import ag.orbia.common.javax.validators.date.DateValidator
import javax.validation.Constraint
import kotlin.reflect.KClass


/**
 * The annotated element must be a valid whether a date is correctly formatted.
 *
 * @since 1.0.5
 */
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Constraint(validatedBy = [DateValidator::class])
annotation class Date (
    val pattern: String = "dd/MM/yyyy",
    val message: String = "O formato da data está incorreto",
    val groups: Array> = [],
    val payload: Array> = []
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy