From 010061aa4440f4991c5e16ebe8fa9e4bc33be3e2 Mon Sep 17 00:00:00 2001 From: yhadjal Date: Mon, 4 Dec 2023 16:52:04 +0100 Subject: [PATCH] [JPA] ne pas generer de composite primary key quand JDBC --- TopModel.Generator.Jpa/JpaDaoGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TopModel.Generator.Jpa/JpaDaoGenerator.cs b/TopModel.Generator.Jpa/JpaDaoGenerator.cs index 6e736862..4c529795 100644 --- a/TopModel.Generator.Jpa/JpaDaoGenerator.cs +++ b/TopModel.Generator.Jpa/JpaDaoGenerator.cs @@ -21,7 +21,7 @@ public JpaDaoGenerator(ILogger logger) protected override bool FilterClass(Class classe) { - return classe.IsPersistent; + return classe.IsPersistent && (!Config.UseJdbc || classe.PrimaryKey.Count() <= 1); } protected override string GetFileName(Class classe, string tag)