@Entity
public class A {
@Reference(lazy=true)
private Collection<B> collectionOfB;
...
public class B {private String name;private String desc;And I want to retrieve only a sub-set of fields from B, so my DAO looks like this:return createQuery()
.field("_my_id").equal(myId)
.retrievedFields(true,
"collectionOfB.name"
)
.asList();However, it doesn't work. Am I am missing something?Thanks,Franklin Dattein
--
You received this message because you are subscribed to the Google Groups "Morphia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to morphia+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.