XML parsing DB mapping

Hi everyone, if i add some field on a table using the command line instead of modify the entity.xml is there any problem? where can i find the code that is used to read the xml and add the new column to the db?i am reading https://github.com/axelor/axelor-open-platform but i didn’t find what i was searching. Could someone illuminate me?

Thanks

Hello,
You can do it, but it is not recommended when using Axelor, which uses the ORM facilities of the Hibernate framework
Regards

Ok but could you indicate me which is the code that parses xml and map models to db? So can i understand exactly what it does

Thanks

Axelor convert xml domain into Java Entity.

You can find the code here : https://github.com/axelor/axelor-open-platform/blob/c7aed53e63cab177da066cf343609c360d0d942b/axelor-tools/src/main/java/com/axelor/tools/code/entity/EntityGenerator.java

After, Hibernate use Java entity to do the job and create tables in database.

It’s a two step so. You can see generated entity directly from your IDE in the bin folder.

2 « J'aime »