Skip to content

Commit 358a284

Browse files
committed
added documentation and fixed #43
1 parent 0762805 commit 358a284

File tree

6 files changed

+28
-13
lines changed

6 files changed

+28
-13
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Sample GraalVMReflectConfigGenerator
13+
- added [org.fugerit.java/native-helper.graalvm](https://github.com/fugerit-org/native-helper-graalvm) dependency 1.0.0
14+
15+
### Changed
16+
17+
- Documentation for GraalVMReflectConfigGenerator, Junit4ModelGenerator, Junit5ModelGenerator,.
18+
19+
### Fixed
20+
21+
- fix name in Junit5ModelGenerator generated classes
22+
1023
## [1.5.1] - 2024-02-28
1124

1225
### Changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ There are two basic feature supplied by the library :
3131
1. [DAO Configuration dump](src/docs/dao_dump.md), this is optional, it provides a configuration dump for the 'DAO Generation' feature.
3232
2. [DAO Generation](src/docs/dao_gen.md), this is the main feature, it generates various items based on a configuration file, named 'daogen-config.xml' (see a [sample daogen-config-xml](fj-daogen-sample/src/main/daogen/fugerit-sample-daogen-config.xml))
3333

34+
[configuration entry point](https://marsdocs.fugerit.org/src/docs/config/config.html)
35+
3436
## [fj-daogen-base](fj-daogen-base/README.md) the core module
3537
This modules contains core functionalities of the library : 'DAO Configuration dump' and 'DAO Generation'
3638

fj-daogen-base/src/main/java/org/fugerit/java/daogen/base/gen/GraalVMReflectConfigGenerator.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.fugerit.java.daogen.base.gen;
22

3-
import com.fasterxml.jackson.annotation.JsonInclude;
4-
import com.fasterxml.jackson.databind.ObjectMapper;
5-
import com.fasterxml.jackson.databind.ObjectWriter;
63
import lombok.extern.slf4j.Slf4j;
74
import org.fugerit.java.core.cfg.ConfigException;
85
import org.fugerit.java.core.javagen.GeneratorNameHelper;
@@ -13,9 +10,7 @@
1310
import org.fugerit.java.nhg.reflect.config.EntryMethod;
1411

1512
import java.io.File;
16-
import java.io.FileWriter;
1713
import java.io.IOException;
18-
import java.io.Writer;
1914
import java.util.ArrayList;
2015
import java.util.Collections;
2116
import java.util.List;
@@ -28,14 +23,11 @@ public class GraalVMReflectConfigGenerator extends DaogenBasicGenerator {
2823

2924
public GraalVMReflectConfigGenerator() {
3025
super();
31-
this.key = KEY;
3226
}
3327

34-
private String key;
35-
3628
@Override
3729
public String getKey() {
38-
return this.key;
30+
return KEY;
3931
}
4032

4133
@Override

fj-daogen-base/src/main/java/org/fugerit/java/daogen/base/gen/Junit5ModelGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public boolean isGenerate( DaogenCatalogConfig daogenConfig, DaogenCatalogEntity
2626

2727
public void init( DaogenCatalogConfig daogenConfig, DaogenCatalogEntity entity ) throws ConfigException {
2828
super.init( daogenConfig.getGeneralProp( DaogenCatalogConstants.GEN_PROP_SRC_TEST_JAVA ),
29-
fullObjectName( daogenConfig.getGeneralProp( DaogenCatalogConstants.GEN_PROP_PACKAGE_JUNIT5_MODEL ), DaogenCatalogConstants.junit4ModelName( entity ) ),
29+
fullObjectName( daogenConfig.getGeneralProp( DaogenCatalogConstants.GEN_PROP_PACKAGE_JUNIT5_MODEL ), DaogenCatalogConstants.junit5ModelName( entity ) ),
3030
STYLE_INTERFACE, daogenConfig, entity );
3131
this.setPublicClass( false );
3232
this.setJavaStyle( STYLE_CLASS );

fj-daogen-base/src/main/resources/config/daogen-config-1-0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* XSD for fugerit daogen configuration
1212
*/
1313
14-
The entry point for daogen-config documentation is : https://marsdocs.fugerit.org/docs/dao_gen.html
14+
The entry point for daogen-config documentation is : https://marsdocs.fugerit.org/src/docs/config/config.html
1515
1616
<daogen-config
1717
xmlns="http://daogen.fugerit.org"

src/docs/config/file_generator-catalog.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ Here is the default genetaor catalog :
5555
</tr>
5656
<tr>
5757
<td><a href="#DocOpenAPIRestGenerator">DocOpenAPIRestGenerator</a></td>
58-
<td>Gemeratpr fpr sample ${Entity}.yaml to use as basic definition for rest services</td>
59-
</tr>
58+
<td>Generator fpr sample ${Entity}.yaml to use as basic definition for rest services</td>
59+
</tr>
60+
<tr>
61+
<td><a href="#Junit4ModelGenerator">Junit4ModelGenerator</a></td>
62+
<td>Generator for class ${Entity}Junit4ModelTest for basic unit test with junit 4</td>
63+
</tr>
64+
<tr>
65+
<td><a href="#Junit5ModelGenerator">Junit5ModelGenerator</a></td>
66+
<td>Generator for class ${Entity}Junit5ModelTest for basic unit test with junit 5</td>
67+
</tr>
6068
</table>
6169

6270
<br/><a href="#top">top</a><br/>

0 commit comments

Comments
 (0)