Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToDo-App Jan Schnaidt and Abdullah Kiran
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdullah Kiran
ToDo-App Jan Schnaidt and Abdullah Kiran
Commits
0a4d15e4
Commit
0a4d15e4
authored
9 months ago
by
abdu
Browse files
Options
Downloads
Patches
Plain Diff
add basic user entity/document and user repository for object-relational mapping
parent
6eb5f188
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/cloudcomputing/todo/entity/User.java
+12
-0
12 additions, 0 deletions
src/main/java/com/cloudcomputing/todo/entity/User.java
src/main/java/com/cloudcomputing/todo/repository/UserRepository.java
+7
-0
7 additions, 0 deletions
...va/com/cloudcomputing/todo/repository/UserRepository.java
with
19 additions
and
0 deletions
src/main/java/com/cloudcomputing/todo/entity/User.java
0 → 100644
+
12
−
0
View file @
0a4d15e4
package
com.cloudcomputing.todo.entity
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.mongodb.core.mapping.Document
;
@Document
(
collection
=
"users"
)
public
class
User
{
@Id
private
Long
user_id
;
private
String
user_name
;
private
String
password
;
}
This diff is collapsed.
Click to expand it.
src/main/java/com/cloudcomputing/todo/repository/UserRepository.java
0 → 100644
+
7
−
0
View file @
0a4d15e4
package
com.cloudcomputing.todo.repository
;
import
com.cloudcomputing.todo.entity.User
;
import
org.springframework.data.mongodb.repository.MongoRepository
;
public
interface
UserRepository
extends
MongoRepository
<
User
,
String
>
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment