Class ResourceTable.FhirIdGenerator

All Implemented Interfaces:
Enclosing class:

public static final class ResourceTable.FhirIdGenerator extends Object implements org.hibernate.tuple.ValueGenerator<String>
Populate myFhirId with server-assigned sequence id when no client-id provided. We eat this complexity during insert to simplify query time with a uniform column. Server-assigned sequence ids aren't available until just before insertion. Hibernate calls insert Generators after the pk has been assigned, so we can use myId safely here.
  • Constructor Details

  • Method Details

    • generateValue

      public String generateValue(org.hibernate.Session session, Object owner)
      Specified by:
      generateValue in interface org.hibernate.tuple.ValueGenerator<String>