Skip to content

Commit

Permalink
patientdoctorrelation tabel oprettet, samt pom udvidet for at minimer…
Browse files Browse the repository at this point in the history
…e risiko for outofmemory ved testkørsel
  • Loading branch information
frjtrifork committed Jul 11, 2011
1 parent 92de994 commit 7a8b55e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1088,3 +1088,18 @@ CREATE TABLE UsageLogEntry (
Amount INTEGER NOT NULL,
INDEX (ClientId, UsageLogEntryPID)
) ENGINE=InnoDB COLLATE=utf8_danish_ci;

CREATE TABLE patientdoctorrelation (
PatientDoctorRelationPID BIGINT(15) AUTO_INCREMENT NOT NULL PRIMARY KEY,
Id VARCHAR(21) NOT NULL,
CPR VARCHAR(10) NOT NULL,
LaegeCPR VARCHAR(10) NOT NULL,

ModifiedDate DATETIME NOT NULL,
ValidFrom DATETIME,
ValidTo DATETIME,
CreatedDate DATETIME NOT NULL,
INDEX (ValidFrom, ValidTo),
CONSTRAINT UC_Person_1 UNIQUE (Id, ValidFrom),
INDEX (modifiedDate, PatientDoctorRelationPID)
) ENGINE=InnoDB COLLATE=utf8_danish_ci;
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
<exclude>**/*Test*$*.*</exclude>
<!-- Exclude Test execution for inner classes and IntegrationTest classes (IntegrationTest classes will be run in the integration-test phase instead) -->
</excludes>
<systemProperties>
<argLine>-Xmx768m -XX:MaxPermSize=256m</argLine>
</systemProperties>
</configuration>

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

Expand All @@ -36,6 +37,11 @@ public class PatientDoctorRelation extends View
@Column(name = "ModifiedDate")
protected Date modifiedDate;

@XmlElement(required = true)
@Column(name = "CPR")
protected String cpr;


@Override
public String getId()
{
Expand Down

0 comments on commit 7a8b55e

Please sign in to comment.