title: Good way to convert Python (django) entity classes to Java
body: <p>I'm looking for a good way to "copy" / convert a model from Python source code to Java source code. My idea is to use the Python django framework on a server to generate entity model classes. On the other side I would like to convert the entity classes to Java to use them in a native Android project.</p>
  
  <p>Do you have any recommendations what I can use to convert the python entity classes to Java? It should be possible to trigger the convertion every time I change the model in python.</p>
  
  <p>Best regards,
  Michael</p>
  
  <hr>
  
  <p>PS: If you're interessted, this is what the project structure will look like:</p>
  
  <p>python django project</p>
  
  <ul>
  <li>connects to the database</li>
  <li>will be used to generate entity model classes</li>
  <li>using REST API for data exchange between Android devices and the server</li>
  </ul>
  
  <p>java model library</p>
  
  <ul>
  <li>this will be my Java library which should contain the converted model of the python django project</li>
  </ul>
  
  <p>android project</p>
  
  <ul>
  <li>this will be my android app which will use the model of the java model library</li>
  <li>it should interact with the server via REST API. That's why the model in the java and python project have to be equals. </li>
  </ul>