Package com.couchace.core.api.annotation

Examples of com.couchace.core.api.annotation.CouchEntity


    public <T> EntityMeta<T> buildEntityMeta(Class<T> entityClass) {
        List<AttachmentMeta> localAttachmentList = new ArrayList<>();

        // Look for class level annotations.
        CouchEntity couchEntity = ClassUtil.findClassAnnotation(entityClass, CouchEntity.class);
        if (couchEntity == null) {
            throw CouchException.internalServerError("Class " + entityClass.getName() + " does not have required @CouchEntity annotation.");
        }
        String entityType;
        if (StringUtil.isNotBlank(couchEntity.value())) {
            entityType = couchEntity.value();
        } else {
            entityType = entityClass.getSimpleName();
        }

        // Look for method level annotations.
View Full Code Here

TOP

Related Classes of com.couchace.core.api.annotation.CouchEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.