-
Notifications
You must be signed in to change notification settings - Fork 25
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
IN40068837
authored and
IN40068837
committed
Dec 10, 2024
1 parent
2f45084
commit bc62684
Showing
13 changed files
with
499 additions
and
41 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
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
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
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
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
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,74 @@ | ||
package com.wipro.fhir.data.users; | ||
|
||
import java.sql.Timestamp; | ||
|
||
import com.google.gson.annotations.Expose; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
|
||
@Entity | ||
@Table(name = "m_user") | ||
@Data | ||
public class User { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Expose | ||
@Column(name = "UserID") | ||
private Long userID; | ||
|
||
@Expose | ||
@Column(name = "TitleID") | ||
private Integer titleID; | ||
@Expose | ||
@Column(name = "FirstName") | ||
private String firstName; | ||
@Expose | ||
@Column(name = "MiddleName") | ||
private String middleName; | ||
@Expose | ||
@Column(name = "LastName") | ||
private String lastName; | ||
|
||
@Expose | ||
@Column(name = "GenderID") | ||
private Integer genderID; | ||
|
||
@Expose | ||
@Column(name = "MaritalStatusID") | ||
private Integer maritalStatusID; | ||
|
||
@Expose | ||
@Column(name = "StatusID") | ||
private Integer statusID; | ||
|
||
@Expose | ||
@Column(name = "DOB") | ||
private Timestamp dOB; | ||
@Expose | ||
@Column(name = "DOJ") | ||
private Timestamp dOJ; | ||
@Expose | ||
@Column(name = "QualificationID") | ||
private Integer qualificationID; | ||
@Expose | ||
@Column(name = "userName") | ||
private String userName; | ||
@Expose | ||
@Column(name = "Deleted", insertable = false, updatable = true) | ||
private Boolean deleted; | ||
@Expose | ||
@Column(name = "CreatedBy") | ||
private String createdBy; | ||
@Column(name = "CreatedDate", insertable = false, updatable = false) | ||
private Timestamp createdDate; | ||
@Column(name = "ModifiedBy") | ||
private String modifiedBy; | ||
@Column(name = "LastModDate", insertable = false, updatable = false) | ||
private Timestamp lastModDate; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/wipro/fhir/repo/user/UserRepository.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,11 @@ | ||
package com.wipro.fhir.repo.user; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
|
||
import com.wipro.fhir.data.users.User; | ||
|
||
public interface UserRepository extends CrudRepository<User, Long> { | ||
|
||
User findByUserID(Long userID); | ||
|
||
} |
Oops, something went wrong.