Torque
  1. Torque
  2. TORQUE-217

Date default values should be possible

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3, 3.3.1
    • Fix Version/s: 4.0-beta1
    • Component/s: Templates
    • Labels:
      None

      Description

      Currently, it is not possible to set a Date value (eg.1970-01-01 00:00:01) as default value. The default value is rendered to the java code unchanged, without quotes, causing compile errors.
      The default should also be rendered as default to the database SQL.

        Activity

        Hide
        Thomas Fox added a comment -

        Date default values are now handled such that the java default value is set to null, because database time and java time might differ. However, the default is written to the database if the field was not changed and is retrieved from database on read.

        Show
        Thomas Fox added a comment - Date default values are now handled such that the java default value is set to null, because database time and java time might differ. However, the default is written to the database if the field was not changed and is retrieved from database on read.
        Hide
        Thomas Fox added a comment -

        Status: Works for all databases except MSSQL

        Show
        Thomas Fox added a comment - Status: Works for all databases except MSSQL

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development