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