Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1189

JDBC Control batch updates with bean parameters cause compilation error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V1Alpha, V1Beta, v1m1, 1.0, 1.0.1, 1.0.2
    • V.Next
    • System Controls
    • None

    Description

      If a JDBC control declares a method which uses bean parameters, the JDBC fails to compile due to an error in the JDBC system control APT checker.

      For example:

      @SQL(statement="INSERT INTO (

      {customer.fname}

      ,

      {customer.id}

      )
      public int[] doBatchUpdate(Customer c);

      The following apt error is generated:

      rg.apache.beehive.controls.api.ControlException: Illegal argument in SQL statement: cust.fname; unable to find suitable method
      of retrieving property fname out of object cust.

      Attachments

        Activity

          People

            grunlowen matt c
            chad_s Chad Schoettger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: