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

org.mongodb.morphia.annotations.NotSaved Maven / Gradle / Ivy

package org.mongodb.morphia.annotations;


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


/**
 * 

When placed on an entity field, the field will not be written to mongodb. It will, however, be loaded normally. This is particularly * useful in concert with {@code @PostLoad} and {@code @PrePersist} to transform your data.

*/ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE}) public @interface NotSaved { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy