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

com.avaje.ebean.annotation.UpdateMode Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.annotation;

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

/**
 * Specify the update mode for the specific entity type.
 * 

* Control whether all 'loaded' properties are included in an Update or whether * just properties that have changed will be included in the update. *

*

* Note that the default can be set via ebean.properties. *

* *
 * ## Set to update all loaded properties
 * ebean.updateChangesOnly=false
 * 
*/ @Target({ ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) public @interface UpdateMode { /** * Set to false if you want to include all the 'loaded' properties in the * update. Otherwise, just the properties that have changed will be included * in the update. */ boolean updateChangesOnly() default true; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy