forked from spbogui/org.openmrs.module.hivscreening
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BOGUI
committed
Jul 6, 2021
0 parents
commit c3f2a92
Showing
1,852 changed files
with
218,658 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### IntelliJ Idea ### | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
### Java ### | ||
*.class | ||
|
||
# Java Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
### Linux ### | ||
.* | ||
!.gitignore | ||
!.gitattributes | ||
*~ | ||
############# | ||
|
||
### Maven ### | ||
target/ | ||
############# | ||
.idea/workspace.xml | ||
.idea/libraries/Maven__org_apache_poi_poi_4_0_0.xml | ||
.idea/libraries/Maven__org_apache_commons_commons_collections4_4_2.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.openmrs.module</groupId> | ||
<artifactId>hivscreening</artifactId> | ||
<version>1.0</version> | ||
</parent> | ||
|
||
<artifactId>hivscreening-api</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Hiv Screening Register Module API</name> | ||
<description>API project for HivScreeningRegister</description> | ||
|
||
<dependencies> | ||
|
||
<!-- | ||
Add other dependencies from parent's pom: | ||
<dependency> | ||
<groupId>org.other.library</groupId> | ||
<artifactId>library-name</artifactId> | ||
</dependency> | ||
--> | ||
|
||
|
||
|
||
|
||
<!-- Begin OpenMRS core --> | ||
|
||
<dependency> | ||
<groupId>org.openmrs.api</groupId> | ||
<artifactId>openmrs-api</artifactId> | ||
<type>jar</type> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.openmrs.web</groupId> | ||
<artifactId>openmrs-web</artifactId> | ||
<type>jar</type> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.openmrs.api</groupId> | ||
<artifactId>openmrs-api</artifactId> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.openmrs.web</groupId> | ||
<artifactId>openmrs-web</artifactId> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.openmrs.test</groupId> | ||
<artifactId>openmrs-test</artifactId> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- End OpenMRS core --> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>true</filtering> | ||
</resource> | ||
</resources> | ||
|
||
<testResources> | ||
<testResource> | ||
<directory>src/test/resources</directory> | ||
<filtering>true</filtering> | ||
</testResource> | ||
</testResources> | ||
</build> | ||
|
||
</project> |
37 changes: 37 additions & 0 deletions
37
api/src/main/java/org/openmrs/module/hivscreening/AbstractObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.openmrs.module.hivscreening; | ||
|
||
import org.openmrs.BaseOpenmrsObject; | ||
|
||
import javax.persistence.*; | ||
import java.io.Serializable; | ||
import java.util.UUID; | ||
|
||
@MappedSuperclass | ||
public abstract class AbstractObject extends BaseOpenmrsObject implements Serializable { | ||
public AbstractObject() { | ||
setUuid(UUID.randomUUID().toString()); | ||
} | ||
|
||
@Override | ||
public Integer getId() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void setId(Integer integer) { | ||
} | ||
|
||
@Basic | ||
@Access(AccessType.PROPERTY) | ||
@Column(name = "uuid", length = 38, unique = true, nullable = false) | ||
@Override | ||
public String getUuid() { | ||
return super.getUuid(); | ||
} | ||
|
||
@Override | ||
public void setUuid(String uuid) { | ||
super.setUuid(uuid); | ||
} | ||
|
||
} |
Oops, something went wrong.