glassfish
  1. glassfish
  2. GLASSFISH-1924

Support using Satement.getGeneratedKeys()

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,924

      Description

      TopLink can take advantage of automaticcally created IDs, for example by
      using "SELECT @@identity" after an INSERT. Unfortunately this means having a
      second SQL command forwarded to the server after each INSERT (including parsing
      etc.).

      JDBC has explicit support for getting created keys: Statement.getGeneratedKeys
      () will return a ResultSet with all automatically generated keys. It would be
      great, if a future verson of TopLink would allow a driver to decide whether the
      current solution is used (subsequent SELECT) or the JDBC method is used (which
      might be faster, but is not supported with all platforms).

        Activity

        Hide
        marina vatkina added a comment -

        resetting the default owner

        Show
        marina vatkina added a comment - resetting the default owner
        Hide
        Tom Mueller added a comment -

        Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

        Show
        Tom Mueller added a comment - Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

          People

          • Assignee:
            tware
            Reporter:
            markuskarg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: