Support for RealmModel
See original GitHub issueWhat 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@magillus PR is now merged into master. A new version will be upload soon to maven.
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.