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

gu.sql2java.annotations.Sql2javaLocalConfig Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package gu.sql2java.annotations;

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

import com.alibaba.fastjson.JSONObject;

import gu.sql2java.BaseBean;

/**
 * Sql2java runtime (thread)local configuration
 * @author guyadong
 * @since 4.3.3
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface Sql2javaLocalConfig {
	/**
	 * Define Java bean types that require normalization of 'modified' fields
	 * @see BaseBean#resetModifiedIfEqual()
	 * @see gu.sql2java.config.RuntimeConfig
	 * @see gu.sql2java.json.FastjsonDeserializer#afterDeserialize(JSONObject json, Object instance, Set modifiedReset, Set modifiedSet)
	 * @see gu.sql2java.json.JacksonDeserializer#doDeserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext)
	 */
	Class[] resetModifiedIfEqual() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy