您如何在运行时查询EclipseLink版本(以及JPA元数据)? [英] How do you query the EclipseLink version at runtime (plus JPA meta data)?

查看:123
本文介绍了您如何在运行时查询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:

org.eclipse.persistence.Version

这篇关于您如何在运行时查询EclipseLink版本(以及JPA元数据)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆