From e443d649dc7b3635b02563f45c654e135f1ea519 Mon Sep 17 00:00:00 2001 From: Kononnable Date: Mon, 19 Jun 2017 23:49:08 +0200 Subject: [PATCH] added composite primary keys test --- .../entity/Post.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/integration/examples/sample27-composite-primary-keys/entity/Post.ts diff --git a/test/integration/examples/sample27-composite-primary-keys/entity/Post.ts b/test/integration/examples/sample27-composite-primary-keys/entity/Post.ts new file mode 100644 index 0000000..26d9d80 --- /dev/null +++ b/test/integration/examples/sample27-composite-primary-keys/entity/Post.ts @@ -0,0 +1,15 @@ +import {Column, Entity, PrimaryColumn} from "typeorm"; + +@Entity("Post") +export class Post { + + @PrimaryColumn("int") + id: number; + + @PrimaryColumn() + type: string; + + @Column() + text: string; + +} \ No newline at end of file