Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-88

JPA settings not correct in persistence.xml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Beta2
    • Component/s: Java EE
    • Labels:
      None

      Description

      With the following command the generated settings in persistence.xml are not correct. This might also be the case for other databases and settings, but I didn't test that yet.

       persistence setup --provider HIBERNATE --container JBOSS_AS6 --database MYSQL_INNODB --jndiDataSource java:demo
      

      It sets the datasource to: java:/DefaultDS (should be java:demo)
      It sets the hibernate dialect to: org.hibernate.dialect.HSQLDialect (which should be MySQL5InnoDBDialect)

        Gliffy Diagrams

          Activity

          Hide
          pbakker Paul Bakker added a comment -

          This issue was partly because I didn't understand correctly what a container is for this plugin, and partly because Forge isn't completely clear about that either.
          I fixed both

          Show
          pbakker Paul Bakker added a comment - This issue was partly because I didn't understand correctly what a container is for this plugin, and partly because Forge isn't completely clear about that either. I fixed both
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          upstream

          Show
          lincolnthree Lincoln Baxter III added a comment - upstream
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          implementation was causing some other bugs, reopened

          Show
          lincolnthree Lincoln Baxter III added a comment - implementation was causing some other bugs, reopened
          Hide
          pbakker Paul Bakker added a comment -

          Sorry about that. What bugs did you run into? I'll fix it than.

          Show
          pbakker Paul Bakker added a comment - Sorry about that. What bugs did you run into? I'll fix it than.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          No worries.

          It would prompt because of settings conflict when first creating a persistence.xml file.

          It revealed a bug in shrinkwrap descriptors in which the PersistenceDescriptor model would be null after parsing an empty persistence.xml (created when installing persistence facet before doing persistence setup)

          Those things should probably be fixed, plus, I think the flow of this new stuff was a little bit weird and didn't have time to look at it yet. So keep your branch around for a little while and we'll get it there

          Other than that, I think this is definitely a good direction to take.

          Show
          lincolnthree Lincoln Baxter III added a comment - No worries. It would prompt because of settings conflict when first creating a persistence.xml file. It revealed a bug in shrinkwrap descriptors in which the PersistenceDescriptor model would be null after parsing an empty persistence.xml (created when installing persistence facet before doing persistence setup) Those things should probably be fixed, plus, I think the flow of this new stuff was a little bit weird and didn't have time to look at it yet. So keep your branch around for a little while and we'll get it there Other than that, I think this is definitely a good direction to take.
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          Hey paul, did you want to revisit this? I'm not sure what still needs to be done.

          Show
          lincolnthree Lincoln Baxter III added a comment - Hey paul, did you want to revisit this? I'm not sure what still needs to be done.
          Hide
          pbakker Paul Bakker added a comment -

          Yes I'll pick this up again. Any idea if the related shrinkwrap bug is solved already?

          Show
          pbakker Paul Bakker added a comment - Yes I'll pick this up again. Any idea if the related shrinkwrap bug is solved already?
          Hide
          lincolnthree Lincoln Baxter III added a comment -

          Done.

          Show
          lincolnthree Lincoln Baxter III added a comment - Done.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development