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.
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.
Best regards, Michael
PS: If you're interessted, this is what the project structure will look like:
python django project
- connects to the database
- will be used to generate entity model classes
- using REST API for data exchange between Android devices and the server
java model library
- this will be my Java library which should contain the converted model of the python django project
android project
- this will be my android app which will use the model of the java model library
- it should interact with the server via REST API. That's why the model in the java and python project have to be equals.