I need to map camel-case names to underscore-separated names in my current project, which uses EclipseLink, due to historical reasons. I know we can customize name mapping i
I think you have missed adding following line in your persistence.xml to say EclipseLink to use your own SessionCustomizer
Refer
http://www.eclipse.org/eclipselink/documentation/2.5/dbws/creating_dbws_services002.htm
http://eclipse.org/eclipselink/documentation/2.4/jpa/extensions/p_session_customizer.htm#CHDFBIEI