mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 12:32:40 +00:00
[+] Computed name for user
This commit is contained in:
parent
5715fa97f7
commit
5d258eb8e1
@ -44,7 +44,9 @@ class AquaNetUser(
|
||||
// One user can have multiple cards
|
||||
@OneToMany(mappedBy = "aquaUser", cascade = [CascadeType.ALL])
|
||||
var cards: MutableList<Card> = mutableListOf()
|
||||
) : Serializable
|
||||
) : Serializable {
|
||||
val computedName get() = displayName.ifEmpty { username }
|
||||
}
|
||||
|
||||
@Repository("AquaNetUserRepository")
|
||||
interface AquaNetUserRepo : JpaRepository<AquaNetUser, Long> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user