I have this query:

      Query query = getEM().createQuery("select s from Subscription s
where s.clientId = ?1 and s.topicId = ?2");
      query.setParameter(1, client.getId());
      query.setParameter(2, topic.getId());
      return getSingleResult(query);

I'm pretty sure it should return some results - the proper data is
persisted before this,
but yet, I don't get any results.

Which obvious thing am I missing?

My entity class:

@Entity
public class Subscription extends AbstractEntity
{
   private static long serialVersionUID = 1l;

   private Long clientId;
   private Long topicId;

   public Long getClientId()
   {
      return clientId;
   }

   public void setClientId(Long client)
   {
      this.clientId = client;
   }

   public Long getTopicId()
   {
      return topicId;
   }

   public void setTopicId(Long topicId)
   {
      this.topicId = topicId;
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to