google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Combined LoadGroup doesn't work #171

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I declare 

@Entity
@Cache
@NoArgsConstructor
public class Quote 

 public static class Everything extends WithAuthor {    }

 public static class WithAuthor {    }

@Setter
@Getter
@Load(value = {Everything.class, WithAuthor.class})
Ref<Author> authorRef;

..............
}

Then trying do the query

List<Quote> quotes = ofy().load()
                .group(Quote.WithAuthor.class)
                .type(Quote.class).list();

This doesn't load the contents of AuthorRef.

But if I declare authorRef as 
@Load( WithAuthor.class)
Ref<Author> authorRef;
then it works.

Original issue reported on code.google.com by hus...@optimaxsoftware.com on 11 Aug 2013 at 10:56