Package org.springframework.roo.addon.dbre.model

Examples of org.springframework.roo.addon.dbre.model.Reference


            // Assume many-to-one multiplicity
            JavaSymbolName fieldName = null;
            final String foreignTableName = foreignTable.getName();
            final String foreignSchemaName = foreignTable.getSchema().getName();
            if (foreignKey.getReferenceCount() == 1) {
                final Reference reference = foreignKey.getReferences()
                        .iterator().next();
                fieldName = new JavaSymbolName(
                        DbreTypeUtils.suggestFieldName(reference
                                .getLocalColumnName()));
            }
            else {
                final Short keySequence = foreignKey.getKeySequence();
                final String fieldSuffix = keySequence != null
View Full Code Here


            JavaSymbolName fieldName = new JavaSymbolName(
                    getInflectorPlural(DbreTypeUtils
                            .suggestFieldName(foreignTableName)) + fieldSuffix);
            JavaSymbolName mappedByFieldName = null;
            if (exportedKey.getReferenceCount() == 1) {
                final Reference reference = exportedKey.getReferences()
                        .iterator().next();
                mappedByFieldName = new JavaSymbolName(
                        DbreTypeUtils.suggestFieldName(reference
                                .getForeignColumnName()));
            }
            else {
                mappedByFieldName = new JavaSymbolName(
                        DbreTypeUtils.suggestFieldName(table) + fieldSuffix);
View Full Code Here

TOP

Related Classes of org.springframework.roo.addon.dbre.model.Reference

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.