Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2783

DbEntity to ObjEntity synchronization should check mandatory flag for primitive java types

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2, 5.0-M1
    • dbimport, Modeler
    • None

    Description

      Logic that creates Obj layer from the DB is not using mandatory flag and just always uses primitive types if possible.

      On the other hand cgen tries to use Object types if field is nullable.

      We should unify logic of these operations and always check nullability of the field.

      Attachments

        Activity

          ntimofeev Nikita Timofeev added a comment - 4.2 : https://github.com/apache/cayenne/commit/a97b04d33265faf28f0ece0f907e0eb569ab4c0c 5.0 : https://github.com/apache/cayenne/commit/bd0bf2687b373704bcb53997fc98e626f4a6c164

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: