您如何在运行时查询EclipseLink版本(以及JPA元数据)?
问题描述:
问题几乎说明了一切.
EclipseLink中的org.hibernate.Version.getVersionString()
是否等效?
Is there an equivalent for org.hibernate.Version.getVersionString()
in EclipseLink?
为什么通常没有一种可移植(JPA)的方式来查询提供者信息?
Why isn't there a portable (JPA) way to query provider information in general?
答
从未使用过,而是从 Eclipselink javadoc ,您可以尝试以下课程:
Never used it but from the Eclipselink javadoc you could try the following class: