Skip to content

Commit

Permalink
Merge pull request #24 from i3l/patient_operations
Browse files Browse the repository at this point in the history
fixed Audit of entity person
  • Loading branch information
ismael-sarmento-jr committed Jul 18, 2015
2 parents 9a231bb + 265ecf7 commit 103cefb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

@Entity
@Table(name="concept")
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public class Concept {

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.jpa.entity.BaseResourceEntity;
import ca.uhn.fhir.jpa.entity.IResourceEntity;
Expand All @@ -37,6 +40,7 @@
@Entity
@Table(name="condition_occurrence")
@Inheritance(strategy=InheritanceType.JOINED)
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public class ConditionOccurrence extends BaseResourceEntity {

public static final String RESOURCE_TYPE = "Condition";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.jpa.entity.BaseResourceEntity;
import ca.uhn.fhir.jpa.entity.IResourceEntity;
Expand All @@ -19,6 +22,7 @@
@Entity
@Table(name="location")
@Inheritance(strategy=InheritanceType.JOINED)
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public class Location extends BaseResourceEntity{

public static final String RESOURCE_TYPE = "Location";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.jpa.entity.BaseResourceEntity;
import ca.uhn.fhir.jpa.entity.IResourceEntity;
Expand All @@ -23,6 +26,7 @@
@Entity
@Table(name="provider")
@Inheritance(strategy=InheritanceType.JOINED)
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public class Provider extends BaseResourceEntity {

public static final String RESOURCE_TYPE = "Practitioner|Organization";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum;
import edu.gatech.i3l.jpa.model.omop.Location;

@Entity
@Table(name="f_location")
@PrimaryKeyJoinColumn(name="location_id")
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
public class LocationFhirExtTable extends Location{

@Column(name="address_use")
Expand Down

0 comments on commit 103cefb

Please sign in to comment.