OK, to help you, I reset the repo, translated my features in english and set up the build in github
In the first commit Initial, build and tests are OK (with my fixes) Initial · bvopro/sample-commons@16d28cd · GitHub
In the commit TestBaseEntitySoftDelete as it should be I remove the fix for soft delete entity where I override fields, the results are that behavior change and tests are KO as you can see TestBaseEntitySoftDelete as it should be · bvopro/sample-commons@43d5bb3 · GitHub
2023-04-29T16:20:27.050+0000 [DEBUG] [TestEventLogger] Failed scenarios:
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger] classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:20 # Create and delete a soft deletable entity
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger] classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:26 # Delete a soft deletable entity linked to another entity
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger] classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:33 # Delete soft deletable entities collection linked to another entity
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger] 10 Scenarios (3 failed, 7 passed)
2023-04-29T16:20:27.051+0000 [DEBUG] [TestEventLogger] 33 Steps (3 failed, 1 skipped, 29 passed)
2023-04-29T16:20:27.052+0000 [DEBUG] [TestEventLogger] 0m27.937s
2023-04-29T16:20:27.052+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:20:27.052+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:20:27.053+0000 [DEBUG] [TestEventLogger] org.opentest4j.AssertionFailedError:
2023-04-29T16:20:27.053+0000 [DEBUG] [TestEventLogger] expected: null
2023-04-29T16:20:27.053+0000 [DEBUG] [TestEventLogger] but was: fr.altereo.addon.commons.entity.TestBaseEntitySoftDelete-dcf924c1-458d-2da0-b936-7a13ef5182c1 [detached]
2023-04-29T16:20:27.053+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2023-04-29T16:20:27.054+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2023-04-29T16:20:27.054+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2023-04-29T16:20:27.054+0000 [DEBUG] [TestEventLogger] at fr.altereo.features.addon.commons.CommonsBaseEntitySoftDeleteSteps.onNeTrouvePasLEnregistrementName(CommonsBaseEntitySoftDeleteSteps.kt:58)
2023-04-29T16:20:27.054+0000 [DEBUG] [TestEventLogger] at ✽.we find an TestEntitySoftDelete with the name = "1", we don't find it(classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:24)
2023-04-29T16:20:27.054+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] org.opentest4j.AssertionFailedError:
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] expected: 0L
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] but was: 1L
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2023-04-29T16:20:27.055+0000 [DEBUG] [TestEventLogger] at fr.altereo.features.addon.commons.CommonsBaseEntitySoftDeleteSteps.lEnregistrementNEstPlusTrouvableEnRechercheSimple(CommonsBaseEntitySoftDeleteSteps.kt:95)
2023-04-29T16:20:27.056+0000 [DEBUG] [TestEventLogger] at ✽.the soft deletable entity is not findable with select(classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:31)
2023-04-29T16:20:27.056+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:20:27.056+0000 [DEBUG] [TestEventLogger] java.lang.AssertionError:
2023-04-29T16:20:27.056+0000 [DEBUG] [TestEventLogger] Expecting empty but was: [fr.altereo.addon.commons.entity.TestBaseEntitySoftDelete-390bb3f0-5cea-cd07-cc5c-7727c7b6c3eb [detached],
2023-04-29T16:20:27.056+0000 [DEBUG] [TestEventLogger] fr.altereo.addon.commons.entity.TestBaseEntitySoftDelete-139754f9-7047-ab6b-c000-a0eb2b98a206 [detached],
2023-04-29T16:20:27.057+0000 [DEBUG] [TestEventLogger] fr.altereo.addon.commons.entity.TestBaseEntitySoftDelete-e79729ad-0a88-6212-2347-87aa4f4a36a1 [detached]]
2023-04-29T16:20:27.057+0000 [DEBUG] [TestEventLogger] at fr.altereo.features.addon.commons.CommonsBaseEntitySoftDeleteSteps.lEntiteAUneCollectionLieeVide(CommonsBaseEntitySoftDeleteSteps.kt:126)
2023-04-29T16:20:27.057+0000 [DEBUG] [TestEventLogger] at ✽.the entity has a collection empty(classpath:fr/altereo/features/addon/commons/model/commons.baseentity.softdelete.feature:37)
Soft Delete test is in (sample-commons/CommonsBaseEntitySoftDeleteSteps.kt at master · bvopro/sample-commons · GitHub and sample-commons/commons.baseentity.softdelete.feature at master · bvopro/sample-commons · GitHub)
In the commit SomeEntityComment as it should be I remove the fix for the base comment entity where I override fields, the result is a build KO
2023-04-29T16:21:33.870+0000 [DEBUG] [TestEventLogger] org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.7.9.6-jmix): org.eclipse.persistence.exceptions.EntityManagerSetupException
2023-04-29T16:21:33.870+0000 [DEBUG] [TestEventLogger] Exception Description: Deployment of PersistenceUnit [main] failed. Close all factories for this PersistenceUnit.
2023-04-29T16:21:33.870+0000 [DEBUG] [TestEventLogger] Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.7.9.6-jmix): org.eclipse.persistence.exceptions.IntegrityException
2023-04-29T16:21:33.870+0000 [DEBUG] [TestEventLogger] Descriptor Exceptions:
2023-04-29T16:21:33.870+0000 [DEBUG] [TestEventLogger] ---------------------------------------------------------
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Exception [EclipseLink-60] (Eclipse Persistence Services - 2.7.9.6-jmix): org.eclipse.persistence.exceptions.DescriptorException
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Exception Description: The method [_persistence_set_user_vh] or [_persistence_get_user_vh] is not defined in the object [fr.altereo.addon.commons.entity.SomeEntityComment].
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Internal Exception: java.lang.NoSuchMethodException: fr.altereo.addon.commons.entity.SomeEntityComment._persistence_get_user_vh()
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[user]
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Descriptor: RelationalDescriptor(fr.altereo.addon.commons.entity.SomeEntityComment --> [DatabaseTable(COM_SOME_ENTITY_COMMENT)])
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger]
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Exception [EclipseLink-218] (Eclipse Persistence Services - 2.7.9.6-jmix): org.eclipse.persistence.exceptions.DescriptorException
2023-04-29T16:21:33.871+0000 [DEBUG] [TestEventLogger] Exception Description: A NullPointerException would have occurred accessing a non-existent weaved _vh_ method [_persistence_get_user_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it.
Comments test is in (sample-commons/CommonsWithCommentsStepdefs.kt at master · bvopro/sample-commons · GitHub and sample-commons/commons.comments.feature at master · bvopro/sample-commons · GitHub)
I hope that will be suffisant to you to resolve my problems