Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2950

SQL Server 2008 Date Column generated as java.lang.String

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.2.0.RC1
    • Fix Version/s: None
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      when reverse engineering, any date or datetime2 column generates a java.util.String. I didn't seem to have a problem with this in the previous versions of roo. Am I missing something, or is this a problem with third-party library roo uses? Thanks!

      roo command
      -----------
      database reverse engineer --schema "adm bld" --package ~.domain --testAutomatically true

      dbre.xml
      --------
      <column name="ReleaseDate" primaryKey="false" required="true" scale="0" size="10" type="12,date"/>

      *_DbManaged.aj
      --------------
      @Column(name = "ReleaseDate", length = 10)
      @NotNull
      private java.lang.String AppVersion.releaseDate;

        Attachments

          Activity

            People

            • Assignee:
              stewarta Alan Stewart
              Reporter:
              iojohnso Isaac Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: