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

io.crnk.jpa.meta.internal.EntityMetaProvider Maven / Gradle / Ivy

There is a newer version: 2.6.20180522184741
Show newest version
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