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

net.dongliu.dbutils.mapping.ColumnName Maven / Gradle / Ivy

package net.dongliu.dbutils.mapping;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Used to mark column name of bean property, when map result set to bean.
 * This annotation can be set on only getter or setter.
 * If Both Getter and Setter are annotated, they should use the same name
 *
 * @author Liu Dong
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ColumnName {
    /**
     * The mapping column name of resultSet
     */
    String value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy