Uploaded image for project: 'Hibernate ODM'
  1. Hibernate ODM
  2. HIBERNATE-47

Design and implement support for embeddable objects

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Should we support flattening object embedding? If yes, how should it be configured? Which of the ways Hibernate ORM has for configuring object embeddings should we support?

      Update:

      • We decided not to support @Embedded @JdbcTypeCode(SqlTypes.JSON), @Embedded @JdbcTypeCode(SqlTypes.SQLXML). Should we explicitly throw when these annotations are used? We should also investigate whether we can change the behavior of these annotations, because if we can, we may use @Embedded @JdbcTypeCode(SqlTypes.JSON) instead of @Embedded @Struct as the former may be more appropriate.
      • After doing more research, nathan.xu@mongodb.com said that changing the existing Hibernate ORM behavior does not seem to be possible (we should double check this). So we technically have only two options: leave the behavior of just @Embedded as is, or forbid using just @Embedded by explicitly throwing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: