question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for RealmModel

See original GitHub issue

What do you think about adding support for RealmModel interface?

I’m not 100% sure if this would be important to other users, because even if you only implement RealmModel and add RealmClass annotation you still cannot extend from different classes then RealmObject. But still there may be some users that prefer this approach.

If you think this would be a nice to have feature I can prepare a PR to discuss 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
vicpinmcommented, Nov 16, 2017

@magillus PR is now merged into master. A new version will be upload soon to maven.

0reactions
magilluscommented, Oct 20, 2017

The RealmModel would work nice with Separate RealmConfiguration - that is where they are used. Something that I had on mind to add, but no time yet. It would work with https://github.com/vicpinm/Kotlin-Realm-Extensions/blob/master/library/src/main/java/com/vicpin/krealmextensions/RealmConfigStore.kt

So definition would not need to be per RealmObject’s class but per RealmModel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RealmModel (Keycloak Docs Distribution 12.0.4 API)
public interface RealmModel extends RoleContainerModel. Version: $Revision: 1 $; Author: Bill Burke. Nested Class Summary. Nested Classes ...
Read more >
Interface RealmModel — Realm - MongoDB
io.realm. Interface for marking classes as RealmObjects, it can be used instead of extending RealmObject . All helper methods available to classes that...
Read more >
Added support for RealmModels · realm/realm-java@7ffe58e
Realm is a mobile database: a replacement for SQLite & ORMs - Added support for RealmModels · realm/realm-java@7ffe58e.
Read more >
Is there any benefit to implementing RealmModel instead of ...
Currently the only benefit with RealmModel is that you can have your own custom isValid() . If you extend RealmObject you cannot have...
Read more >
org.keycloak.models.RealmModel java code examples
public void removeUserLoginFailure(RealmModel realm, String username) { UsernameLoginFailureEntity entity = em.find(UsernameLoginFailureEntity.class, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found