Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-580

Need a better algorithm to find DBDictionary classname in DBDictionaryFactory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 1.3.0, 2.0.0-M2
    • Component/s: jdbc
    • Labels:
      None

      Description

      When I debug OpenJPA code, I am surprised to find that it creates an instance of AccessDictionary for a sample application which uses Derby.

      The sample application is copied from book "Pro EJB3". The connection URL for the persistence unit is:
      jdbc:derby://localhost:1527/fieldAccess;create=true

      Since it contains 'Access' in the URL value, the OpenJPA code assumes it uses Access database.

      We need a better algorithm to find classname for DBDictionary in DBDictionaryFactory. For example, we can assume the database is Access only if the URL starts with 'jdbc:access'.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                allee8285 Albert Lee
                Reporter:
                jasonzheng1970 Jason Zheng
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: