Skip to content

Commit

Permalink
modgen v1.52.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gideruette committed Aug 29, 2024
1 parent e47edb3 commit e640c25
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TopModel.Generator (`modgen`)

## 1.52.2

- HotFix sur [`#382`](https://github.com/klee-contrib/topmodel/issue/382)

## 1.52.1

- [`#381`](https://github.com/klee-contrib/topmodel/issue/381) - [JAVA] SonarQube règles java:S2057 and java:S2162
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Core/TopModel.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.52.1</Version>
<Version>1.52.2</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Librairie de modélisation TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator.Core/TopModel.Generator.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.52.1</Version>
<Version>1.52.2</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Librarie de base pour écrire un générateur TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator.Jpa/JpaModelPropertyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void WriteCompositePrimaryKeyClass(JavaWriter fw, Class classe, string ta
fw.WriteLine();
fw.WriteLine(2, "@Override");
fw.WriteLine(2, "public int hashCode() {");
fw.WriteLine(3, $"return Objects.hash({string.Join(", ", classe.PrimaryKey.Select(pk => $"{pk.NameByClassCamel}{GetterToCompareCompositePkPk(pk)}"))});");
fw.WriteLine(3, $"return Objects.hash({string.Join(", ", classe.PrimaryKey.Select(pk => $"{(pk is AssociationProperty || pk is AliasProperty ap && ap.Property is AssociationProperty ? $"{pk.NameByClassCamel}== null ? null : " : string.Empty)} {pk.NameByClassCamel}{GetterToCompareCompositePkPk(pk)}"))});");
fw.AddImport("java.util.Objects");
fw.WriteLine(2, "}");
fw.WriteLine(1, "}");
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator/TopModel.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackAsTool>true</PackAsTool>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<ToolCommandName>modgen</ToolCommandName>
<Version>1.52.1</Version>
<Version>1.52.2</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Générateur de modèle TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Utils/TopModel.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<Version>1.52.1</Version>
<Version>1.52.2</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Utilitaires TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](./media/IconDark.svg)

# TopModel <small>1.52.1</small>
# TopModel <small>1.52.2</small>

> Modélisez en toute simplicité.
Expand Down
2 changes: 1 addition & 1 deletion samples/model/angular.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/angular/src/appgenerated/api/securite/profil/profil.service.ts
- ../generators/angular/src/appgenerated/api/securite/utilisateur/utilisateur.service.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/csharp.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.comments.cs
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.cs
Expand Down
2 changes: 1 addition & 1 deletion samples/model/focus.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/focus/src/locale/common.ts
- ../generators/focus/src/locale/securite.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/jpa.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/profil/ProfilClient.java
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/utilisateur/UtilisateurClient.java
Expand Down
2 changes: 1 addition & 1 deletion samples/model/pg.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/pg/src/01_tables.sql
- ../generators/pg/src/02_fk_indexes.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/php.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/php/src/Entity/Securite/Profil/Droit.php
- ../generators/php/src/Entity/Securite/Profil/Profil.php
Expand Down
2 changes: 1 addition & 1 deletion samples/model/ssdt.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/ssdt/src/init/DROIT.insert.sql
- ../generators/ssdt/src/init/main.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/translation.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.52.1
version: 1.52.2
generatedFiles:
- ../generators/translation/i18n/de_DE/out/common_de_DE.properties
- ../generators/translation/i18n/de_DE/out/securite_de_DE.properties
Expand Down

0 comments on commit e640c25

Please sign in to comment.