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

de.bild.codec.annotations.DiscriminatorFallback Maven / Gradle / Ivy

Go to download

A very fast POJO codec for MongoDB (used in conjunction with the Mongo Java Driver) that handles generic types as well as polymorphic class hierarchies

There is a newer version: 2.8.2
Show newest version
package de.bild.codec.annotations;


import java.lang.annotation.*;

/**
 * This annotation can be used to decode objects from the database that do not provide a discriminator. Usually this is
 * the case when you persist entities in the db that evolve into polymorphic structures but weren't at the beginning.
 * If you already know your structure will eventually grow into polymorphic structures, use the {@link Polymorphic}
 * annotation to make your intent clear. Then always a discriminator is persisted to the db.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface DiscriminatorFallback {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy