Package reportgen.cores.ejb.annotations

Examples of reportgen.cores.ejb.annotations.DefineQueryProperty.desc()


            Class c = f[i].getType();
            if(!c.isAnnotationPresent(Entity.class)
                    || gen == null) {
                    continue;
            }
            res.add(new QueryEntity(c, gen.title(), gen.desc(), f[i].getName(),
                    LinkageMode.forward, thisEntity, coreContextGroup));
        }

        //backlinked
        LinkedReportEntity[] linked = getEntitySet().getLinkedClasses(cls);
View Full Code Here


            QEntityProperty qep = null;
            Class type = field.getType();
            String name = path + field.getName();
            if(type.isAnnotationPresent(Entity.class)) {
                qep = new QueryEntityObjectField(parent, type, gen.title(), gen.desc(), name);
            } else {
                qep = new QueryEntityField(parent, type, gen.title(), gen.desc(), name);
            }
            res.add(qep);
        }
View Full Code Here

            Class type = field.getType();
            String name = path + field.getName();
            if(type.isAnnotationPresent(Entity.class)) {
                qep = new QueryEntityObjectField(parent, type, gen.title(), gen.desc(), name);
            } else {
                qep = new QueryEntityField(parent, type, gen.title(), gen.desc(), name);
            }
            res.add(qep);
        }

        //embedded properties
View Full Code Here

            if(type.isAnnotationPresent(Entity.class)) {
                throw new RuntimeException("Аннотирован метод класса " + method.getDeclaringClass()
                    + " представляющий не встроенную сущность " + method.getName());
            }
            QEntityProperty qep =new QueryEntityMethod(parent, type,
                gen.title(), gen.desc(), path + method.getName());
            res.add(qep);
        }

        //embedded properties
        for(int i=0; i<embedded.size(); i++) {
View Full Code Here

     */
    public void reReadClassInfo() {
        DefineQueryProperty gen = (DefineQueryProperty) cls.getAnnotation(DefineQueryProperty.class);
        if(gen != null) {
            title = gen.title();
            desc = gen.desc();
        } else {
            DefineQueryEntity gene = (DefineQueryEntity) cls.getAnnotation(DefineQueryEntity.class);
            if(gene != null) {
                title = gene.title();
                desc = gene.desc();               
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.