+ " / embeddedValue = " + m.embeddedValue
);
return m;
}
private Object treatMapKey(Node node, Object mo) throws SpeedoException {
SpeedoField f = (SpeedoField) mo;
SpeedoColumn col = null;
Node n = node.getAttributes().getNamedItem("column");
if (n != null) {
col = new SpeedoColumn();
col.name = n.getNodeValue();
//in the same table than map value
if (f.columns != null && f.columns.length > 0) {
col.table = f.columns[0].table;
}
}
if (!(f.jdoTuple instanceof SpeedoMap)) {
throw new SpeedoException(
"key element must be used for map field only: "
+ f.getSourceDesc());
}
SpeedoMap m = (SpeedoMap) f.jdoTuple;
if (col != null) {
m.keyColumns = col;
}