XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Quarkus
    • None
    • False
    • None
    • False
    • Hide
      To test from within the windup-rulesets project
      mvn -DrunTestsMatching=springboot-properties-to-quarkus clean test
      Show
      To test from within the windup-rulesets project mvn -DrunTestsMatching=springboot-properties-to-quarkus clean test
    • Sprint 214 AMM, Sprint 215 AMM, Sprint 217 AMM

      Find spring.jpa.hibernate.ddl-auto=create-drop and replace with quarkus.hibernate-orm.database.generation=drop-and-create

      Create a new rule in the springboot-properties-to-quarkus.windup.xml ruleset
      Copy ruleid springboot-properties-to-quarkus-00003
      When criteria
      filecontent filename="application

      {profile}

      .

      {extension}

      " pattern="spring.jpa.hibernate.ddl-auto=create-drop"

      Title: Replace Spring JPA Hibernate property
      Category-id: mandatory
      Effort: 1
      Message: Replace `spring.jpa.hibernate.ddl-auto=create-drop` property with `quarkus.hibernate-orm.database.generation=drop-and-create`

      Link: Quarkus Hibernate ORM and JPA Guide

      Change the tests/data/springboot-properties/application.properties file to have this property setting
      spring.jpa.hibernate.ddl-auto=create-drop

        1. Screenshot from 2022-03-15 15-56-17.png
          215 kB
          Shveta Sachdeva
        2. Screenshot from 2022-03-15 15-56-35.png
          229 kB
          Shveta Sachdeva

              Unassigned Unassigned
              pcattana Philip Cattanach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: