From a56c7ec0119f10fd642691ddcf0767ee951d5fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gild=C3=A9ric=20DERUETTE?= Date: Wed, 26 Jun 2024 16:25:12 +0200 Subject: [PATCH] =?UTF-8?q?[JPA]=20Ajouter=20le=20constructeur=20sans=20ar?= =?UTF-8?q?gument=20dans=20le=20cas=20o=C3=B9=20la=20classe=20a=20une=20cl?= =?UTF-8?q?asse=20parente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TopModel.Generator.Jpa/JpaModelGenerator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TopModel.Generator.Jpa/JpaModelGenerator.cs b/TopModel.Generator.Jpa/JpaModelGenerator.cs index b22133f9..2c72f857 100644 --- a/TopModel.Generator.Jpa/JpaModelGenerator.cs +++ b/TopModel.Generator.Jpa/JpaModelGenerator.cs @@ -105,6 +105,7 @@ protected override void HandleClass(string fileName, Class classe, string tag) if (Config.CanClassUseEnums(classe, Classes) || Config.MappersInClass && classe.FromMappers.Any(c => c.ClassParams.All(p => AvailableClasses.Contains(p.Class))) || classe.Extends != null + || AvailableClasses.Any(c => c.Extends == classe) || classe.Decorators.Any(d => Config.GetImplementation(d.Decorator)?.Extends is not null)) { JpaModelConstructorGenerator.WriteNoArgConstructor(fw, classe);