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

org.ibatis.persist.Column Maven / Gradle / Ivy

Go to download

The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.

The newest version!
package org.ibatis.persist;

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

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Specifies the mapped column for a persistent property or field. If no Column annotation is specified,
 * the default values apply.
 *
 * @since iBatis Persistence 1.0
 */
@Target({ METHOD, FIELD })
@Retention(RUNTIME)
public @interface Column {

    /**
     * (Optional) The name of the column. Defaults to the property or field name.
     */
    String name() default "";

    /**
     * (Optional) The name of the table that contains the column. If absent the column is assumed to be in the primary
     * table.
     */
    String table() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy