From b1b42ec8f270d717c288d7f027d4a20268e7d6c5 Mon Sep 17 00:00:00 2001 From: Gilderic DERUETTE Date: Mon, 2 Oct 2023 10:34:38 +0200 Subject: [PATCH] [JPA] Correction imports association JDBC01 --- TopModel.Generator.Jpa/ImportsJpaExtensions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TopModel.Generator.Jpa/ImportsJpaExtensions.cs b/TopModel.Generator.Jpa/ImportsJpaExtensions.cs index 44d7282a..5068c70b 100644 --- a/TopModel.Generator.Jpa/ImportsJpaExtensions.cs +++ b/TopModel.Generator.Jpa/ImportsJpaExtensions.cs @@ -50,7 +50,10 @@ private static List GetTypeImports(this AssociationProperty ap, JpaConfi var imports = new List(); imports.AddRange(config.GetDomainImports(ap, tag)); - imports.Add(ap.Association.GetImport(config, tag)); + if (!config.UseJdbc) + { + imports.Add(ap.Association.GetImport(config, tag)); + } return imports; }