Uploaded image for project: 'Hibernate ORM'
  1. HHH-13023

Add a YearMonthType to support the java.time.YearMonth

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Components: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      There are many ways we could store a java.time.YearMonth object:

      • 2 separate fields
      • a VARCHAR for its toString representation
      • a number (e.g. short, int, long) where the value is: Year * 100 + Month or Year * 12 + Month.

      Of all possibilities, the number alternative seems the most efficient in terms of database indexing.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: