Skip to content

Commit

Permalink
[JPA] Correction Converter pour composition dans classe persistée
Browse files Browse the repository at this point in the history
  • Loading branch information
gideruette committed Sep 19, 2024
1 parent b16bc83 commit e1ec476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}

Expand Down

0 comments on commit e1ec476

Please sign in to comment.