title: Find by Object Attributes in JPA
body: <p>i was wondering whether it is possible to find an object using an example object like you can in hibernate with:</p>
  
  <pre><code>Cat cat = new Cat();
  cat.Sex = 'F';
  cat.Color = Color.Black;
  List results = session.CreateCriteria(typeof(Cat)).Add( Example.Create(cat)).List();
  </code></pre>
  
  <p>I know i can find by primary key, just not looking forward to writing a million lines of findByX, findByY etc etc.</p>
  
  <p>thanks.</p>
  
  <p>Nico</p>