Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以修改现有的 JBPM 模式或向模式添加一些额外的故事吗?
是的。只要您添加额外的列或额外的表,它就会正常工作。如果您想在实体上使用其他属性,您应该将它们添加为流程实例属性,以便它们正确持久化并且可以在运行时从流程实例上下文中访问。
你,你可以,没有任何麻烦。
但是,如果您想向 JBPM 实体添加其他属性,最好创建您自己的实体,以及@OneToOneJBPM 实体。
@OneToOne
另一种选择是使用休眠继承TABLE_PER_CLASS并扩展您想要的 JBPM 实体。
TABLE_PER_CLASS