I'm trying to do a query on Jira's db and I'm getting an error :
Here's my entity :
@Preloadpublic 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 !