Upgrading GlassFish 3.1.2.2 to use JPA 2.1

前端 未结 3 1685
醉梦人生
醉梦人生 2020-12-07 00:00

I am working with GlassFish 3.1.2.2 (I can not upgrade to 4 due to OS restrictions).

I\'m interested in upgrading JPA 2.0 to JPA 2.1 GlassFish 3.1.2.2. How can I ac

3条回答
  •  甜味超标
    2020-12-07 00:50

    Did you try just replacing the EclipseLink and JPA jar files in Glassfish?

    It will probably work, but if you use managed persistence units they will not expose any JPA 2.1 API, you would need to unwrap the EntiyManager to access these.

提交回复
热议问题