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

org.babyfish.jimmer.sql.runtime.SaveErrorCode Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show newest version
package org.babyfish.jimmer.sql.runtime;

import org.babyfish.jimmer.error.ErrorFamily;
import org.babyfish.jimmer.error.ErrorField;

@ErrorFamily
@ErrorField(name = "exportedPath", type = ExportedSavePath.class)
public enum SaveErrorCode {

    READONLY_MIDDLE_TABLE,

    NULL_TARGET,

    CANNOT_DISSOCIATE_TARGETS,

    NO_ID_GENERATOR,

    ILLEGAL_ID_GENERATOR,

    ILLEGAL_GENERATED_ID,

    ILLEGAL_INTERCEPTOR_BEHAVIOR,

    EMPTY_OBJECT,

    NO_KEY_PROPS,

    NO_KEY_PROP,

    NO_NON_ID_PROPS,

    NO_VERSION,

    OPTIMISTIC_LOCK_ERROR,

    /**
     * Only case when
     * 1. The transaction in trigger is enabled
     * 2. Save mode is `INSERT_ONLY` or associated mode is `APPEND`
     */
    ALREADY_EXISTS,

    NEITHER_ID_NOR_KEY,

    REVERSED_REMOTE_ASSOCIATION,

    LONG_REMOTE_ASSOCIATION,

    FAILED_REMOTE_VALIDATION,

    UNSTRUCTURED_ASSOCIATION,

    TARGET_IS_NOT_TRANSFERABLE,

    INCOMPLETE_PROPERTY,

    @ErrorField(name = "props", type = String.class, list = true)
    @ErrorField(name = "values", type = Object.class, list = true)
    NOT_UNIQUE,

    @ErrorField(name = "prop", type = String.class)
    @ErrorField(name = "targetId", type = Object.class)
    ILLEGAL_TARGET_ID;

    /**
     * Will be removed in `1.0.0`
     */
    @Deprecated
    public static final SaveErrorCode ILLEGAL_VERSION = OPTIMISTIC_LOCK_ERROR;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy