It is pretty easy following these steps:
1) you add cmp persistence unit (so persistence.xml) 2) you grab this generated file and add it with the persistence.xml or any location you reference in mappings in persistence.xml 3) you update the generated file to match your needs Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-11-27 11:39 GMT+01:00 ludo <[email protected]>: > I started tomme without orm.xml nor persistence.xml files. > I founded in apache-tomee-plus-1.7.2/tmp dir a generated jar which contains > METAINF/openejb-cmp-generated-orm.xml > > Is it the right file ? > And now ? Do I have to split to orm.xml and persistence.xml files ? > I don't really understand the way > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/EJB-CMP-and-orm-xml-mapping-tp4676983p4676995.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
