When I try to run SQLMetal on a sqlite database which defines a foreign key constraint on multiple fields, i get an error.
The table is as follows:
CREATE TABLE A (
a1 INTEGER,
a2 INTEGER,
PRIMARY KEY (a1,a2)
);
CREATE TABLE B (
b1 INTEGER,
b2 INTEGER,
b3 INTEGER,
b4 TEXT,
PRIMARY KEY (b1,b2,b3),
FOREIGN KEY (b1,b2) REFERENCES A (a1,a2)
);
The error message is:
"sqlmetal: Sequence contains more than one matching element"
Anybody knows how to resolve that problem?