I would like to know how to use xml for O- R mapping in Persistence. Is it possible? In the sample projs that I hav done, I used annotations for mapping(toplink was the library used). Also I would like to know is it possible to translate the xml file created when using hibernate to annotation or any other corresponding xml files if I replace hibernate with Persistence. If possible how can it do? Solution to this problem will be greatly appreciated.