Enum LazyToOneOption

    • Enum Constant Detail

      • FALSE

        public static final LazyToOneOption FALSE
        Eagerly load the association.
      • PROXY

        public static final LazyToOneOption PROXY
        Lazy, give back a proxy which will be loaded when the state is requested. This should be the preferred option.
      • NO_PROXY

        public static final LazyToOneOption NO_PROXY
        Lazy, give back the real object loaded when a reference is requested. Bytecode enhancement is mandatory for this option. Falls back to PROXY if the class is not enhanced. This option should be avoided unless you can't afford the use of proxies
    • Method Detail

      • values

        public static LazyToOneOption[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LazyToOneOption c : LazyToOneOption.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LazyToOneOption valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null