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

com.github.chengyuxing.sql.annotation.Insert Maven / Gradle / Ivy

Go to download

Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql file.

There is a newer version: 9.0.2
Show newest version
package com.github.chengyuxing.sql.annotation;

import java.lang.annotation.*;

/**
 * Method annotated with {@code @Insert} means the method no need to mapping
 * with sql fragment, {@link XQL @XQL} will be not working.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface Insert {
    /**
     * Table name.
     *
     * @return table name
     */
    String value();

    /**
     * Ignore null value of data key.
     *
     * @return ignore or not
     */
    boolean ignoreNull() default false;

    /**
     * Ignore data key if table all fields not contains key.
     *
     * @return safe or not
     */
    boolean safe() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy