optpanner 名册无法添加租户
optpanner roster unable to add tenant
我能够按照此处的说明配置 openshift 和 optaplanner roster 应用程序 https://github.com/kiegroup/optashift-employee-rostering
我正在尝试使用
添加租户
curl -X POST "http://localhost/rest/tenant/add" -H "accept: application/json" -H "content-type: application/json" -d "{ \"id\": 100, \"version\": 10, \"name\": \"Test\"}"
我收到错误:
org.hibernate.PersistentObjectException: detached entity passed to persist: org.optaplanner.openshift.employeerostering.shared.tenant.Tenantorg.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1152)
org.jboss.as.jpa.container.AbstractEntityManager.persist(AbstractEntityManager.java:580)
org.optaplanner.openshift.employeerostering.server.tenant.TenantRestServiceImpl.addTenant(TenantRestServiceImpl.java:52)
org.optaplanner.openshift.employeerostering.server.tenant.TenantRestServiceImpl$Proxy$_$$_WeldSubclass.addTenant$$super(Unknown Source)
如何添加租户?
在 7.7 中,optashift-employee-rostering 中尚不支持添加租户。 It's a critical missing feature 即将添加。
我能够按照此处的说明配置 openshift 和 optaplanner roster 应用程序 https://github.com/kiegroup/optashift-employee-rostering
我正在尝试使用
添加租户curl -X POST "http://localhost/rest/tenant/add" -H "accept: application/json" -H "content-type: application/json" -d "{ \"id\": 100, \"version\": 10, \"name\": \"Test\"}"
我收到错误:
org.hibernate.PersistentObjectException: detached entity passed to persist: org.optaplanner.openshift.employeerostering.shared.tenant.Tenantorg.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1152)
org.jboss.as.jpa.container.AbstractEntityManager.persist(AbstractEntityManager.java:580)
org.optaplanner.openshift.employeerostering.server.tenant.TenantRestServiceImpl.addTenant(TenantRestServiceImpl.java:52)
org.optaplanner.openshift.employeerostering.server.tenant.TenantRestServiceImpl$Proxy$_$$_WeldSubclass.addTenant$$super(Unknown Source)
如何添加租户?
在 7.7 中,optashift-employee-rostering 中尚不支持添加租户。 It's a critical missing feature 即将添加。