我剛開始使用RealmDB並不能弄清楚如何正確保存鏈接對象,實施了幾分foreign key 這裏是我的主要User模型。 public class UserModel extends RealmObject {
@PrimaryKey
public Long id;
public String firstName;
public String lastNa
let syncServerURL = URL(string: serverUrl + "Combine")!
var configuration = Realm.Configuration()
configuration.encryptionKey = Utility().getKey() as Data
configuration.syncConfiguration = SyncConf