orm.xml) from in-source JPA annotations. In that article, I mentioned Sahoo's blog on using the Java 5 apt tool to generate a
persistence.xmlfile. Sahoo has now posted a blog entry on A javac Plugin to Manage Your persistence.xml in which he demonstrates using javac in different contexts (directly, Maven, etc.) to generate a JPA persistence.xml file.
In a related blog, Sahoo lists some of his observations and experiences using the Java SE 6 annotation processor.
persistence.xmlfile and the
orm.xml(or one or more files fulfilling the same purpose) are the two main outside-of-code configuration files needed with JPA. The OTN article I cited above talks about generation of the
orm.xmlor equivalent file from in-source annotations and Sahoo's blogs cover creation of the