what you did should be good but you need to define all your columns in the orm.xml. By default tomee generate one at startup (the path is logged IIRC). Start from this file instead of your own orm.xml (= remove your file and persistence.xml, restart, get the file and add back persistence.xml and orm.xml)
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:13 GMT+01:00 ludo <[email protected]>: > Sorry Romain, > I dont understand what you mean, Can you explain your answer > > I resume: > - I have a lot of weblogic EJB CMP to migrate to tomee > - when java attributes in entities and column names in database are the > same, it's ok > - but I have to map java attributes to database with a different name > > Can you give me a sample to do that ? > Thanks in advance > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/EJB-CMP-and-orm-xml-mapping-tp4676983p4676991.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
