我参考这个帖子 如何创建类似StandardEntity的问题?
建立了一个实体,以这个实体替代StandardEntity进行使用,在本项目中继承或是将项目打包成应用程序组件,继承这个实体,就会报错,提示父类的字段未找到,请问是否有办法实现这样的效果?
12:01:04.407 ERROR c.h.c.c.s.AbstractWebAppContextLoader - Error initializing application
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.3.6-cuba): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Deployment of PersistenceUnit [order] failed. Close all factories for this PersistenceUnit.
Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.7.3.6-cuba): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------
Exception [EclipseLink-60] (Eclipse Persistence Services - 2.7.3.6-cuba): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_set_group_vh] or [_persistence_get_group_vh] is not defined in the object [com.company.order.entity.Order].
Internal Exception: java.lang.NoSuchMethodException: com.company.order.entity.Order._persistence_get_group_vh()
Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[group]
Descriptor: RelationalDescriptor(com.company.order.entity.Order --> [DatabaseTable(ORDER_ORDER)])