Skip to content

Commit

Permalink
[i18n] Gérer les traductions de listes de référence en SQL (et C#)
Browse files Browse the repository at this point in the history
Fixes #174
  • Loading branch information
gideruette committed Apr 17, 2024
1 parent 30c731e commit 397f0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopModel.Generator.Jpa/JpaResourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void WriteClasse(FileWriter fw, IGrouping<IPropertyContainer, IFieldProp
}
}

if (container.Key is Class classe && classe.DefaultProperty != null)
if (container.Key is Class classe && classe.DefaultProperty != null && (Config.TranslateReferences ?? true))
{
foreach (var val in classe.Values)
{
Expand Down

0 comments on commit 397f0f4

Please sign in to comment.