title: hibernate Query by primary key
body: <p>I wanna create query by primary key.
  Supposed I have class primary key, PersonKey, the properties is name and id.</p>
  
  <p>I have Person class, the property is PersonKey, address, DOB.</p>
  
  <p>Now, I wanna search person by primary key.</p>
  
  <p>First, I create instance of PersonKey, and set the name become: joe, and id become:007</p>
  
  <p>can I get the person by ID, by pass the key variable ???</p>
  
  <p>person.findByKey(someKey); , but the logic do not criteria </p>