Customize JPA field name mapping using EclipseLink

后端 未结 4 1846
名媛妹妹
名媛妹妹 2021-01-12 16:01

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

4条回答
  •  日久生厌
    2021-01-12 16:30

    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

提交回复
热议问题