/** * Set the given map key column as the map key column for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of the column */ protected void setMapKeyColumn(FieldMapping fm, MappingInfo info, Column col, int unique) { List<Column> cols = new ArrayList<Column>(); cols.add(col); info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); }
/** * Set the given map key column as the map key column for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of the column */ protected void setMapKeyColumn(FieldMapping fm, MappingInfo info, Column col, int unique) { List<Column> cols = new ArrayList<Column>(); cols.add(col); info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); }
/** * Set the given map key column as the map key column for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of the column */ protected void setMapKeyColumn(FieldMapping fm, MappingInfo info, Column col, int unique) { List<Column> cols = new ArrayList<Column>(); cols.add(col); info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); }
/** * Set the given columns as the columns for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of each column */ protected void setColumns(FieldMapping fm, MappingInfo info, List<Column> cols, int unique) { info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); //### EJB3 Log log = getLog(); if (log.isWarnEnabled() && unique == (TRUE | FALSE)) log.warn(_loc.get("inconsist-col-attrs", fm)); }
/** * Set the given columns as the columns for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of each column */ protected void setColumns(FieldMapping fm, MappingInfo info, List<Column> cols, int unique) { info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); //### EJB3 Log log = getLog(); if (log.isWarnEnabled() && unique == (TRUE | FALSE)) log.warn(_loc.get("inconsist-col-attrs", fm)); }
/** * Set the given columns as the columns for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of each column */ protected void setColumns(FieldMapping fm, MappingInfo info, List<Column> cols, int unique) { info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); //### EJB3 Log log = getLog(); if (log.isWarnEnabled() && unique == (TRUE | FALSE)) log.warn(_loc.get("inconsist-col-attrs", fm)); }
/** * Set the given columns as the columns for <code>fm</code>. * * @param unique bitwise combination of TRUE and FALSE for the * unique attribute of each column */ protected void setColumns(FieldMapping fm, MappingInfo info, List<Column> cols, int unique) { info.setColumns(cols); if (unique == TRUE) info.setUnique(new org.apache.openjpa.jdbc.schema.Unique()); //### EJB3 Log log = getLog(); if (log.isWarnEnabled() && unique == (TRUE | FALSE)) log.warn(_loc.get("inconsist-col-attrs", fm)); }