Package org.apache.openjpa.jdbc.meta

Examples of org.apache.openjpa.jdbc.meta.MappingInfo$ForeignKeyDefaults


        boolean retVal = startMapKeyColumn(attrs);
        // check if name is not set, set it to default: the
        // concatenation of the name of the referencing property
        // or field name, "-", "KEY"
        FieldMapping fm = (FieldMapping) peekElement();
        MappingInfo info = fm.getKeyMapping().getValueInfo();
        List cols = info.getColumns();
        Column col = (Column)cols.get(0);
        if (col.getName() == null)
            col.setName(fm.getName() + "_" + "KEY");

        return retVal;
View Full Code Here

TOP

Related Classes of org.apache.openjpa.jdbc.meta.MappingInfo$ForeignKeyDefaults

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.