Uploaded image for project: 'ShrinkWrap Descriptors'
  1. ShrinkWrap Descriptors
  2. SHRINKDESC-40

Properties on PersistenceUnitDefImpl should overwrite existing properties with the same name

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.1.3
    • Fix Version/s: 0.1.4
    • Component/s: api
    • Labels:
      None

      Description

      Continuous property updates cause this:

      <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      <property name="hibernate.show_sql" value="true"/>
      <property name="hibernate.format_sql" value="true"/>
      <property name="hibernate.transaction.flush_before_completion" value="true"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
      <property name="hibernate.show_sql" value="true"/>
      <property name="hibernate.format_sql" value="true"/>
      <property name="hibernate.transaction.flush_before_completion" value="true"/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>

        Gliffy Diagrams

          Activity

          Hide
          aslak Aslak Knutsen added a comment -

          need to change create("property") to getOrCreate("property@name=" + name)

          Show
          aslak Aslak Knutsen added a comment - need to change create("property") to getOrCreate("property@name=" + name)
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          that would have been a better way to do it

          Show
          lincolnthree Lincoln Baxter III added a comment - that would have been a better way to do it
          Show
          alrubinger Andrew Rubinger added a comment - Upstream: https://github.com/shrinkwrap/descriptors/commit/22c3bc114b1546eb93e47174be1805472fe2867b

            People

            • Assignee:
              lincolnthree Lincoln Baxter III
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development