Explicitly support or disallow all types from the org.bson.types package

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None

      It is of importance to do this ticket before making the product available to the public.

      All the types in the org.bson.types package are Serializable. This means:

      Thus, without us doing anything, Hibernate ORM stores values of those types using PreparedStatement.setBytes, where the bytes are the serialized value. This is not how we want these values to be stored. Given that the types "work" even now, if we don't do anything, and introduce proper support for these types after the product is first made available to the public, then such a change would be breaking. Therefore, before making the product available to the public, we should either explicitly support all of the types in org.bson.types, or explicitly forbid them. The latter is likely simpler, but still requires us to create and register with Hibernate ORM custom org.hibernate.type.descriptor.java.JavaType and/or org.hibernate.type.descriptor.jdbc.JdbcType for each of the types from org.bson.types.

            Assignee:
            Unassigned
            Reporter:
            Valentin Kavalenka
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: