From e1ec476946e1ab6ed48910830063c4d2503d8d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gild=C3=A9ric=20DERUETTE?= Date: Thu, 19 Sep 2024 18:26:36 +0200 Subject: [PATCH] =?UTF-8?q?[JPA]=20Correction=20Converter=20pour=20composi?= =?UTF-8?q?tion=20dans=20classe=20persist=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs b/TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs index 080e4215..09e3c529 100644 --- a/TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs +++ b/TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs @@ -426,7 +426,7 @@ private void WriteConvertAnnotation(JavaWriter fw, CompositionProperty property, { var javaOrJakarta = _config.PersistenceMode.ToString().ToLower(); fw.AddImport($"{javaOrJakarta}.persistence.Convert"); - fw.AddImport(_config.CompositionConverterCanonicalName.Replace("{class}", property.Class.Name).Replace("{package}", _config.GetPackageName(property.Class, tag))); + fw.AddImport(_config.CompositionConverterCanonicalName.Replace("{class}", property.Composition.Name).Replace("{package}", _config.GetPackageName(property.Class, tag))); fw.WriteLine(indentLevel, $"@Convert(converter = {_config.CompositionConverterSimpleName.Replace("{class}", property.Class.Name)}.class)"); }