Hi!
I'm trying to find a good documentation which states exactly, what query by example is capable of and what not.
In particular, I want to know, if query by example supports a search like the following: I want to get all Persons which have a location with a certain name.
public class Person
{
public virtual IList<Location> Locat...
I had hoped this was baked into the most recent release, but if it is, I can't find the docs via a simple Google search. Failing that, I'd prefer a simple library, but I'll settle for a tutorial.
Thanks.
...
Hello,
I know there are MANY ways to achieve the following in NHiberante - i am not interested in other scenarios. What I am wondering is if it is possible to automatically generate a subquery using a many-to-one relationship and a query by example in NHibernate.
My setup is as follows:
public class Customer
{
public virtual int ID...
I'm trying to use Hibernate QBE (actually, Spring's HibernateTemplate.findByExample() ) to return a list of users by their username. I use a "known good" value to search on (the username "JOHN.SMITH" does exist in the database).
Unfortunately, I get no results back. Below is the unit test.
@Test
public void testQueryByExample() {
...