this post was submitted on 08 Sep 2024
4 points (100.0% liked)

Android Development

539 readers
8 users here now

Welcome to the programming.dev Android development community!

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

founded 1 year ago
MODERATORS
 

I have no experience with android apps and just started working on one that needs to work with relational data. The relational data has multiple many-to-many relationships and the inbuilt ORM (Room) is leads to class explosion.

While looking at ORM libraries for android, there seem to be many that are out of date:

From 5 of the Best Android ORMs (2014) and AlexeyZatsepin/Android-ORM-benchmark (2017)

I'm leaning towards Requery because I like its API the most (hides SQL the most), but haven't looked at ObjectBox yet.

top 2 comments
sorted by: hot top controversial new old
[โ€“] chickenf622@sh.itjust.works 2 points 2 months ago (1 children)

I have used ObjectBox in dart and it does support mtm relationships (you may need to define an intermediate model for the relationship. I can't remember off the top of my head). It worked great for me with only 1 or 2 gotchas that weren't well documented.

[โ€“] tinkralge@programming.dev 1 points 2 months ago

Thanks. It does look like the right library to use. A little surprising that it seems to be the only one that's up to date, but at least it exists!