io.dataspray.singletable.InitWithDefault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of single-table Show documentation
Show all versions of single-table Show documentation
DynamoDB best practices encourages a single-table design that allows multiple record types to reside within the
same table. The goal of this library is to improve the experience of Java developers and make it safer to define
non-conflicting schema of each record, serializing and deserializing automatically and working with secondary
indexes.
The newest version!
// SPDX-FileCopyrightText: 2019-2022 Matus Faro
// SPDX-License-Identifier: Apache-2.0
package io.dataspray.singletable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* For fields that were previously Nullable, you can make them NonNull
* by also annotating them with this InitWithDefault which will cause
* any fetch from the database to convert a null value to be inited
* with a default instance from DynamoConvertersProxy.
*/
@Target(FIELD)
@Retention(RUNTIME)
public @interface InitWithDefault {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy