Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-629

JPA tests have invalid check for @Temporal field value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 maintenance release 2 (2.2)
    • JDO 3 (3.0)
    • tck
    • None

    Description

      The JPA tests
      companyAnnotatedAllRelationshipsJPAPM.conf
      companyAnnotatedAllRelationshipsJPAConcrete.conf
      companyAnnotatedEmbeddedJPAConcrete.conf
      companyAnnotatedEmbeddedJPAPM.conf

      all have fields annotated with @Temporal(DATE) which means store as java.sql.Date. This will store only the year/month/day components. DataNucleus until recently just stored as a java.util.Date hence storing all details but now obeys the annotation. The check is currently for year/month/day/hour/min/sec yet should be for year/month/day only.

      Attachments

        Activity

          People

            andyj Andy Jefferson
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: