org.babyfish.jimmer.spring.meta.SpringMetaStringResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-spring-boot-starter Show documentation
Show all versions of jimmer-spring-boot-starter Show documentation
A revolutionary ORM framework for both java and kotlin
package org.babyfish.jimmer.spring.meta;
import org.babyfish.jimmer.sql.meta.MetaStringResolver;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.springframework.util.StringValueResolver;
public class SpringMetaStringResolver implements MetaStringResolver {
private final StringValueResolver stringValueResolver;
public SpringMetaStringResolver(StringValueResolver stringValueResolver) {
this.stringValueResolver = stringValueResolver;
}
@Override
@Nullable
public String resolve(@NotNull String value) {
return stringValueResolver.resolveStringValue(value);
}
}