Skip to content

Commit

Permalink
[JPA] Ajouter le constructeur sans argument dans le cas où la classe …
Browse files Browse the repository at this point in the history
…a une classe parente
  • Loading branch information
gideruette committed Jun 26, 2024
1 parent 012d276 commit a56c7ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TopModel.Generator.Jpa/JpaModelGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a56c7ec

Please sign in to comment.