remind101 / auto-value-realm Goto Github PK
View Code? Open in Web Editor NEWAn extension for Google's AutoValue that allows using Realm's datastore
License: MIT License
An extension for Google's AutoValue that allows using Realm's datastore
License: MIT License
I wrote this class:
@AutoValue
public abstract class Invoice implements Parcelable, AvModel<$RealmInvoice> {
@Nullable
public abstract Integer something();
@AutoValue.Builder
abstract static public class Builder {
public abstract Invoice build();
public abstract Builder something(Integer something);
}
}
I am trying to use it, but when I try to read/write from Realm, I get this exception:
io.realm.exceptions.RealmException: class com.my.package.model.$RealmInvoice is not part of the schema for this Realm.
at io.realm.internal.RealmProxyMediator.getMissingProxyClassException(RealmProxyMediator.java:241)
at io.realm.DefaultRealmModuleMediator.getTableName(DefaultRealmModuleMediator.java:228)
at io.realm.RealmSchema.getTable(RealmSchema.java:296)
at io.realm.RealmSchema.getSchemaForClass(RealmSchema.java:316)
at io.realm.RealmQuery.<init>(RealmQuery.java:138)
...
I noticed from the gradle output that Realm is processing other of my classes but none of those generated by this Autovalue extension:
19:11:52.610 [ERROR] [system.err] Note: Processing class OtherModel
19:11:52.612 [ERROR] [system.err] Note: Creating DefaultRealmModule
So, $RealmInvoice seem to be ignored by the Realm plugin.Therefore the DefaultRealmModuleMediator.java does not contain the class $RealmInvoice and that is why I am getting the exception.
Any ideas of what could be going on? Maybe when the Realm task is running before that class is generated? If so, any ideas of how to work around it?
Thanks!
Has no guidance currently around how this is supposed to be used, limitations, code snippets, maven coordinates, etc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.