Project

General

Profile

Revision f27116cd

View differences:

lcfserver-codegen/src/main/java/com/ceridwen/lcf/server/codegen/GenerateWebservices.java
61 61
            List<StringTemplateSelectionCriterion> list = new ArrayList<>();
62 62
                        
63 63
            for (SelectionCriteria criterion: SelectionCriteria.values()) {
64
                String property = dashedToCamel(criterion.value());
64
                String property;
65
                if (criterion.value().startsWith("alt-")) {
66
                    property = dashedToCamel(criterion.value().replace("^alt-", "additional-").replace("-type$", ""));                    
67
                } else {
68
                    property = dashedToCamel(criterion.value());
69
                }
65 70
                try {
66 71
                    entity.getTypeClass().getMethod("get" + property);
67 72
                    StringTemplateSelectionCriterion criteria = new StringTemplateSelectionCriterion();

Also available in: Unified diff