Package com.jengine.orm.model.field

Examples of com.jengine.orm.model.field.ModelProperty


        // init fields and properties
        LinkedHashMap<String, Field> fields = new LinkedHashMap<String, Field>();
        fields.put(SelfField.DEFAULT_NAME, new SelfField(cls));
        fields.putAll(collectFields(cls));
        fields.putAll(collectProperties(cls));
        fields.put("verbose", new ModelProperty("getVerbose", String.class, map("verbose", manager.getName())));
        Field pkField = getPrimaryKey(fields);
        if (pkField == null) {
            manager.addField("id", new PrimaryKey());
        }
        for (String fieldName : fields.keySet()) {
View Full Code Here


        for (Method method : cls.getMethods()) {
            if (method.isAnnotationPresent(Attribute.class)) {
                Attribute attribute = method.getAnnotation(Attribute.class);
                properties.put(attribute.name(),
                        new ModelProperty(method.getName(), method.getReturnType(),
                                map("verbose", attribute.verbose(), "visible", attribute.visible()))
                );
            }
        }
View Full Code Here

TOP

Related Classes of com.jengine.orm.model.field.ModelProperty

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.