You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Issue 327 moved from a Google Code project.
Added by 2011-09-20T16:21:25.000Z by thegreen...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low
Original description
It would be nice if Morphia supported "mixin" annotations akin to the ones found in Jackson.
ie., given a domain object:
class Obj {
int oid;
double[] vals;
}
That I want to persist via Morphia & Mongo, but don't want to add annotations to the class. So I want to be able to define the annotations/persistence information outside of that class in something like:
@Entity class ObjMixin {
@Id int oid;
double[] vals;
}
And then somewhere in the mapping code do something like:
datastore.mapWith(Obj.class, ObjMixin.class)
Mapping in JSON or XML would also work.
The text was updated successfully, but these errors were encountered:
This is Issue 327 moved from a Google Code project.
Added by 2011-09-20T16:21:25.000Z by thegreen...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Low
Original description
The text was updated successfully, but these errors were encountered: