What does this message mean?
Posted: Tue 11 Oct 2011 13:16
I have an Entity Model for my code. There's one table, called Images, which has the following definition:
There are 2 different types of images: Overviews & Plates. The ImageTypeId is used to tell these apart.
In the Entity Developer, I selected the OrigX, OrigY, Width, and Height columns and dragged them out onto the design surface. I chose to make them a Derived Class, called PlateImage. After completing these tasks, I got the error below:
Problem in mapping fragments starting at lines 143, 177:Two entities with different keys are mapped to the same row. Ensure these two mapping fragments do not map two groups of entities with different keys to the same group of rows.
What does this message mean? How do I correct it?
Thanks
Tony
Code: Select all
CREATE TABLE "CarSystem"."Images" (
"ImageId" UUID PRIMARY KEY DEFAULT UUID_GENERATE_V4(),
"ReadId" UUID NOT NULL REFERENCES "CarSystem"."Reads" ( "ReadId" ),
"ImageTypeId" INT NOT NULL REFERENCES "CarSystem"."ImageTypes" ( "ImageTypeId" ),
"ImageClassId" INT NOT NULL REFERENCES "CarSystem"."ImageClasses" ( "ImageClassId" ) DEFAULT 3,
"ImageOid" INT NOT NULL,
"OrigX" INT NULL,
"OrigY" INT NULL,
"Width" INT NULL,
"Height" INT NULL,
"Camera" VARCHAR(16) NULL,
"TimeStamp" TIMESTAMPTZ NOT NULL,
"CreatedDate" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
i_active SMALLINT NOT NULL DEFAULT 1,
"ModifyDate" TIMESTAMPTZ NULL
);
In the Entity Developer, I selected the OrigX, OrigY, Width, and Height columns and dragged them out onto the design surface. I chose to make them a Derived Class, called PlateImage. After completing these tasks, I got the error below:
Problem in mapping fragments starting at lines 143, 177:Two entities with different keys are mapped to the same row. Ensure these two mapping fragments do not map two groups of entities with different keys to the same group of rows.
What does this message mean? How do I correct it?
Thanks
Tony