Skip to content

Commit

Permalink
[JPA] ne pas generer de composite primary key quand JDBC
Browse files Browse the repository at this point in the history
  • Loading branch information
yhadjal committed Dec 4, 2023
1 parent e5587da commit 010061a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TopModel.Generator.Jpa/JpaDaoGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public JpaDaoGenerator(ILogger<JpaDaoGenerator> logger)

protected override bool FilterClass(Class classe)
{
return classe.IsPersistent;
return classe.IsPersistent && (!Config.UseJdbc || classe.PrimaryKey.Count() <= 1);
}

protected override string GetFileName(Class classe, string tag)
Expand Down

0 comments on commit 010061a

Please sign in to comment.