I use eclipselink for few time, and I have experiences only with generating persistence entities from database. But is somehow possible to generate persitence entities from other description nor database - for example from description of database - xml typed description.
Reason why I ask (whole idea) is following:
database is descripted in sql - but if I have db schema description for example in xml (.. it could be liqui base format - or other format, ... better if the format could be customable and allows to have additional information), I could transform xml to sql and then run it or get additional information. All descriptions of one "domain" is together and changes could be simply versioned (with cvs, svn, mercurial..).
Is something simillar supported with JPA (eclipselink)?
I don't use mapping via orm.xml. Correct me if Im wrong, but I thought that orm.xml just describe the same what is in persistent object mapped with annotation. And generating could be switch on/off in eclipse link setting.
The point of question was more focused on idea if entities could be generated from another source nor database.
.. but, thanks for reply and idea