Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-7454

Can't use custom jpa entity and jpa repository when using kie-server-spring-boot-starter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.9.0.Final
    • 7.8.0.Final
    • KieServer
    • None
    • NEW
    • NEW
    • 2018 Week 27-29

      When using kie-server-spring-boot-starter as the guide, https://github.com/kiegroup/droolsjbpm-integration/tree/master/kie-spring-boot/kie-spring-boot-starters/kie-server-spring-boot-starter. It's not possible to use any custom JPA entity and Spring JPA repository.
      When start, the application throws
      Caused by: java.lang.IllegalArgumentException: Not a managed type

      The reason is that kie-server auto config use its own LocalContainerEntityManagerFactoryBean that doesn't include any customer entity
      https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-spring-boot/kie-spring-boot-autoconfiguration/jbpm-spring-boot-autoconfiguration/src/main/java/org/jbpm/springboot/autoconfigure/JBPMAutoConfiguration.java#L116

              swiderski.maciej Maciej Swiderski (Inactive)
              pikachu_jira yi gong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: