1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var tslib_1 = require("tslib");
|
4 |
|
5 |
|
6 | var MissingJoinColumnError = (function (_super) {
|
7 | tslib_1.__extends(MissingJoinColumnError, _super);
|
8 | function MissingJoinColumnError(entityMetadata, relation) {
|
9 | var _this = _super.call(this) || this;
|
10 | _this.name = "MissingJoinColumnError";
|
11 | Object.setPrototypeOf(_this, MissingJoinColumnError.prototype);
|
12 | if (relation.inverseRelation) {
|
13 | _this.message = "JoinColumn is missing on both sides of " + entityMetadata.name + "#" + relation.propertyName + " and " +
|
14 | (relation.inverseEntityMetadata.name + "#" + relation.inverseRelation.propertyName + " one-to-one relationship. ") +
|
15 | "You need to put JoinColumn decorator on one of the sides.";
|
16 | }
|
17 | else {
|
18 | _this.message = "JoinColumn is missing on " + entityMetadata.name + "#" + relation.propertyName + " one-to-one relationship. " +
|
19 | "You need to put JoinColumn decorator on it.";
|
20 | }
|
21 | return _this;
|
22 | }
|
23 | return MissingJoinColumnError;
|
24 | }(Error));
|
25 | exports.MissingJoinColumnError = MissingJoinColumnError;
|
26 |
|
27 |
|