ObjectId generator

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      One MongoDB dialect idiosyncrasy. The following Entity pattern should work as expected:

      @Entity
      class Book {
          @Id @GeneratedValue
          @ObjectIdGenerator
          ObjectId id;
      }

      in line with Hibernate's `@UuidGenerator` pattern, so user doesn't need to assign an ObjectId value when creating an entity with `Objectid` as the `@Id` annotated primary key Java type.

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

              Created:
              Updated:
              Resolved: