Package ca.uhn.fhir.jpa.model.entity
Class ResourceTable.FhirIdGenerator
java.lang.Object
ca.uhn.fhir.jpa.model.entity.ResourceTable.FhirIdGenerator
- All Implemented Interfaces:
org.hibernate.tuple.ValueGenerator<String>
- Enclosing class:
ResourceTable
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
-
FhirIdGenerator
public FhirIdGenerator()
-
-
Method Details
-
generateValue
- Specified by:
generateValue
in interfaceorg.hibernate.tuple.ValueGenerator<String>
-