io.crnk.jpa.meta.internal.EntityMetaProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crnk-jpa Show documentation
Show all versions of crnk-jpa Show documentation
JSON API framework for Java
package io.crnk.jpa.meta.internal;
import io.crnk.core.engine.internal.utils.ClassUtils;
import io.crnk.jpa.meta.MetaEntity;
import javax.persistence.Entity;
import java.lang.reflect.Type;
public class EntityMetaProvider extends AbstractEntityMetaFactory {
@Override
public boolean accept(Type type) {
return ClassUtils.getRawType(type).getAnnotation(Entity.class) != null;
}
@Override
protected MetaEntity newDataObject() {
return new MetaEntity();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy