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

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.8.0.Final
    • Fix Version/s: 7.9.0.Final
    • Component/s: KieServer
    • Labels:
      None
    • Environment:

      Spring boot 2.0

    • Sprint:
      2018 Week 27-29
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                pikachu yi gong
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: