title: Transforming Hibernate Entity to clean POJO for serialization
body: <p>I'm still new to using ORM stuff in Java, and here is one question I seem to be stuck on:</p>
  
  <p>I have a large number of Hibernate Entities and want to query for them on the server (works fine) then serialise them (using ObjectOuputStream) and send them to a client.</p>
  
  <p>If I deserialize them on the client there is still a large number of Hibernate / javax.persistence dependencies. </p>
  
  <p>Is it possible to transform my entities to POJOs with no dependency on hibernate at all somehow?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  To clear thing up, I am using annotations, which is probably silly. I will need to redefine all classes to be annotation-free, then they should be standard POJOs.</p>