简体   繁体   中英

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 !

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 !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM