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

io.crnk.jpa.meta.internal.MappedSuperclassMetaFactory 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.MetaMappedSuperclass;

import javax.persistence.MappedSuperclass;
import java.lang.reflect.Type;

public class MappedSuperclassMetaFactory extends AbstractEntityMetaFactory {


	@Override
	public boolean accept(Type type) {
		return ClassUtils.getRawType(type).getAnnotation(MappedSuperclass.class) != null;
	}

	@Override
	protected MetaMappedSuperclass newDataObject() {
		return new MetaMappedSuperclass();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy