org.babyfish.jimmer.sql.fetcher.impl.Ids Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
The newest version!
package org.babyfish.jimmer.sql.fetcher.impl;
import org.babyfish.jimmer.runtime.ImmutableSpi;
public class Ids {
private Ids() {}
public static Object idOf(ImmutableSpi spi) {
if (spi == null) {
return null;
}
return spi.__get(spi.__type().getIdProp().getId());
}
}