forked from Cookies_Github_mirror/AquaDX
[+] Computed name for user
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user