Bug in Data Tools - Data model with DummyEntity

The 2.8.1 is better (Bug in Data Tools - Data model with inheritance
is ok) but there is another bug !

I have a DummyEntity as explained here Inheritance bugs - #7 by taimanov and now I have a bug on it.

In a parent addon, I have an abstract entity BaseComment and in a child addon I have concreet entity.
But there is a build bug, so I need to a concreet entity in the parent addon.

@JmixEntity
@MappedSuperclass
abstract class BaseComment<T : BaseEntity>()

@JmixEntity
@Table(name = "COM_DUMMY_BASE_COMMENT")
@Entity(name = "com_DummyBaseComment")
@JacocoExcludeGenerated([JacocoExcludeType.BUG], "https://forum.jmix.io/t/inheritance-bugs/2838/7")
open class DummyBaseComment : BaseComment<BaseEntity>()

I set DummyBaseComment as ignored in liquibase generation, so there is no table…

The DataModel bug with

java.lang.IllegalStateException: Column: DATE_ is not found in table: COM_DUMMY_BASE_COMMENT
	at io.jmix.datatools.datamodel.DataModelRegistry.getDatabaseColumnType(DataModelRegistry.java:447)
	at io.jmix.datatools.datamodel.DataModelRegistry.getDatabaseColumnType(DataModelRegistry.java:464)
	at io.jmix.datatools.datamodel.DataModelRegistry.constructAttribute(DataModelRegistry.java:398)
	at io.jmix.datatools.datamodel.DataModelRegistry.addDatatypeAttribute(DataModelRegistry.java:176)
	at io.jmix.datatools.datamodel.DataModelRegistry.createEntityDescription(DataModelRegistry.java:125)
	at io.jmix.datatools.datamodel.DataModelRegistry.constructDataModel(DataModelRegistry.java:101)
	at io.jmix.datatools.datamodel.DataModelRegistry.init(DataModelRegistry.java:88)
	at io.jmix.datatools.datamodel.DataModelRegistry.checkInitialized(DataModelRegistry.java:74)
	at io.jmix.datatools.datamodel.DataModelRegistry.getDataModels(DataModelRegistry.java:519)
	at io.jmix.datatoolsflowui.view.datamodel.DataModelListView.getDataModelProvider(DataModelListView.java:118)
	at io.jmix.datatoolsflowui.view.datamodel.DataModelListView.initDataStoreNames(DataModelListView.java:106)
	at io.jmix.datatoolsflowui.view.datamodel.DataModelListView.onInit(DataModelListView.java:101)
	

If I try without DummyEntity, because It was an old bug, but build error

Descriptor Exceptions: 
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_set_user_vh] or [_persistence_get_user_vh] is not defined in the object [com.company.addon.thirdparty.entity.BaseThirdPartyComment].
Internal Exception: java.lang.NoSuchMethodException: com.company.addon.thirdparty.entity.BaseThirdPartyComment._persistence_get_user_vh()
Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[user]
Descriptor: RelationalDescriptor(com.company.addon.thirdparty.entity.BaseThirdPartyComment --> [DatabaseTable(THIRDP_BASE_THIRD_PARTY_COMMENT)])

Exception [EclipseLink-218] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
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.

Exception [EclipseLink-60] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_set_user_vh] or [_persistence_get_user_vh] is not defined in the object [com.company.addon.inspection.entity.InspectionCaseComment].
Internal Exception: java.lang.NoSuchMethodException: com.company.addon.inspection.entity.InspectionCaseComment._persistence_get_user_vh()
Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[user]
Descriptor: RelationalDescriptor(com.company.addon.inspection.entity.InspectionCaseComment --> [DatabaseTable(INS_INSPECTION_CASE_COMMENT)])

Exception [EclipseLink-218] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
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.

Exception [EclipseLink-60] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_set_user_vh] or [_persistence_get_user_vh] is not defined in the object [com.company.addon.inspection.entity.InspectionComment].
Internal Exception: java.lang.NoSuchMethodException: com.company.addon.inspection.entity.InspectionComment._persistence_get_user_vh()
Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[user]
Descriptor: RelationalDescriptor(com.company.addon.inspection.entity.InspectionComment --> [DatabaseTable(INS_INSPECTION_COMMENT)])

Exception [EclipseLink-218] (Eclipse Persistence Services - 4.0.6-3-jmix.v202511172336-9dc6ae0a264e78253f0d9518d0a389b982412bfa): org.eclipse.persistence.exceptions.DescriptorException
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.

Runtime Exceptions: 
---------------------------------------------------------

Hi Benoît!

Thank you for highlight problem!

Let me share ticket for initial problem: MappedSuperclass is enhanced incorrectly if it has no Entity subclasses in the module · Issue #317 · jmix-framework/jmix

Also I have issued ticket that help us to avoid problem with Data mode view in like this case: Warning message instead of exception for differences between the meta model and database tables · Issue #5223 · jmix-framework/jmix

Best regards,
Igor