Q:

Jira Active Objects query

I'm trying to do a query on Jira's db and I'm getting an error :
Here's my entity :
@Preload
public interface BlogEntity extends Entity {

    @XmlElement
    Long getArticleId();

    void setArticleId(Long id);

    @XmlElement
    Long getPostId();

    void setPostId(Long id);

}

Here's the function that contains the query on my BlogEntityManagerImpl :
public List<Long> get(Long id) {
  final Query query = Query.select().where("POST_ID = ?", id);
  List<BlogEntity> blogList = Lists.newArrayList(activeObjects.find(BlogEntity.class, query));
  ...
}

I know that the query is the problem, but I don't have more details about the exception. I'd really appreciate if someone has any ideas about what I'm doing wrong... :)
Thank you !

A:

Actually, the problem was in my BlogEntityManagerImpl class.
I forgot to add the import import static com.google.common.base.Preconditions.*; to correctly call the method checkNotNull on activeOjects.

