diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b7344a..322eb12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- fj-daogen-version set to 1.7.6 +- fj-daogen-version set to 1.7.7 - fj-version set to 8.5.3 - dao-finder-ng-mode 'enabled' diff --git a/pom.xml b/pom.xml index b451b5b..bea89a9 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ true 3.2.5 8.5.3 - 1.7.6 + 1.7.7 3.4.0 ${project.basedir} target/generated-sources/daogen diff --git a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/DocumentJunit5ModelTest.java b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/DocumentJunit5ModelTest.java index a558dba..b70c756 100644 --- a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/DocumentJunit5ModelTest.java +++ b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/DocumentJunit5ModelTest.java @@ -40,13 +40,22 @@ public void printAll( ModelDocument current ) { public ModelDocument newInstance() { WrapperDocument current = new WrapperDocument( new HelperDocument() ); current.setId(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setIdOwner(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setIdCreator(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setCreationDate(new java.util.Date()); + Assertions.assertFalse( current.isEmpty() ); current.setUpdateDate(new java.util.Date()); + Assertions.assertFalse( current.isEmpty() ); current.setPath("1"); + Assertions.assertFalse( current.isEmpty() ); current.setState(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setInfo(null); + Assertions.assertFalse( current.isEmpty() ); + logger.info( "unwrap : {}", current.unwrap( current ) ); return current; } @Test diff --git a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/Example01Junit5ModelTest.java b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/Example01Junit5ModelTest.java index a445c50..96b3d39 100644 --- a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/Example01Junit5ModelTest.java +++ b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/Example01Junit5ModelTest.java @@ -35,8 +35,12 @@ public void printAll( ModelExample01 current ) { public ModelExample01 newInstance() { WrapperExample01 current = new WrapperExample01( new HelperExample01() ); current.setField1("1"); + Assertions.assertFalse( current.isEmpty() ); current.setField2(new java.util.Date()); + Assertions.assertFalse( current.isEmpty() ); current.setField3("1"); + Assertions.assertFalse( current.isEmpty() ); + logger.info( "unwrap : {}", current.unwrap( current ) ); return current; } @Test diff --git a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/MappedTableJunit5ModelTest.java b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/MappedTableJunit5ModelTest.java index 4039a77..63ff784 100644 --- a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/MappedTableJunit5ModelTest.java +++ b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/MappedTableJunit5ModelTest.java @@ -34,7 +34,10 @@ public void printAll( ModelMappedTable current ) { public ModelMappedTable newInstance() { WrapperMappedTable current = new WrapperMappedTable( new HelperMappedTable() ); current.setId(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setContent("1"); + Assertions.assertFalse( current.isEmpty() ); + logger.info( "unwrap : {}", current.unwrap( current ) ); return current; } @Test diff --git a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/PersonJunit5ModelTest.java b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/PersonJunit5ModelTest.java index ff1a6b3..5f4995f 100644 --- a/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/PersonJunit5ModelTest.java +++ b/src/test/java/org/fugerit/java/daogen/quickstart/junit5test/model/PersonJunit5ModelTest.java @@ -42,15 +42,23 @@ public void printAll( ModelPerson current ) { public ModelPerson newInstance() { WrapperPerson current = new WrapperPerson( new HelperPerson() ); current.setId(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setSurname("1"); + Assertions.assertFalse( current.isEmpty() ); current.setName("1"); + Assertions.assertFalse( current.isEmpty() ); current.setBirthDate(new java.util.Date()); + Assertions.assertFalse( current.isEmpty() ); current.setNote("1"); + Assertions.assertFalse( current.isEmpty() ); current.setIdMother(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setIdFather(new java.math.BigDecimal( "1" )); + Assertions.assertFalse( current.isEmpty() ); current.setMother( new org.fugerit.java.daogen.quickstart.impl.helper.HelperPerson() ); current.setFather( new org.fugerit.java.daogen.quickstart.impl.helper.HelperPerson() ); current.setOwnedDocuments( new java.util.ArrayList() ); + logger.info( "unwrap : {}", current.unwrap( current ) ); return current; } @Test