-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from team-xquare/12-add-user
🔀 :: (XQUARE-12)add user
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/xaquare/xquarebackoffice/domain/entity/User.kt
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
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/com/xaquare/xquarebackoffice/global/base/BaseUUIDEntity.kt
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,18 @@ | ||
package com.xaquare.xquarebackoffice.global.base | ||
|
||
import java.util.UUID | ||
import javax.persistence.Column | ||
import javax.persistence.GeneratedValue | ||
import javax.persistence.Id | ||
import javax.persistence.MappedSuperclass | ||
|
||
@MappedSuperclass | ||
abstract class BaseUUIDEntity( | ||
@Id | ||
@GeneratedValue(generator = "uuid2") | ||
@Column( | ||
columnDefinition = "BINARY(16)", | ||
nullable = false | ||
) | ||
val id: UUID? | ||
) |