forked from Cookies_Github_mirror/AquaDX
[O] Generalize card migration
This commit is contained in:
@@ -13,7 +13,7 @@ import java.util.*
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Repository("OngekiUserDataRepository")
|
||||
interface UserDataRepository : JpaRepository<UserData, Long>, GenericUserDataRepo {
|
||||
interface UserDataRepository : GenericUserDataRepo<UserData, Long> {
|
||||
fun findByCard_ExtIdIn(userIds: Collection<Long>): List<UserData>
|
||||
|
||||
override fun findByCard(card: Card): UserData?
|
||||
|
||||
@@ -33,7 +33,7 @@ public class UserData implements Serializable, IGenericUserData {
|
||||
@JsonSerialize(using = AccessCodeSerializer.class)
|
||||
@JsonProperty(value = "accessCode", access = JsonProperty.Access.READ_ONLY)
|
||||
@OneToOne
|
||||
@JoinColumn(name = "aime_card_id")
|
||||
@JoinColumn(name = "aime_card_id", unique = true)
|
||||
private Card card;
|
||||
// Access code in card
|
||||
|
||||
|
||||
Reference in New Issue
Block a user