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; }