hey there,
I have two classes with a one-to-many relationship. For ilustration:
public class Customer
{
Business business;
Date created;
}
public class Business
{
}
Now, when I do the following:
new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName())
it works perfectly fine. However, when I include filtering based on created field of Customer, the query fails. Although, (SELECT * FROM Customer) with the where clause included works well. Can someone please guide me on what to look for or what is it that I am doing wrong
Thanks in advance.