本文整理了Java中org.eclipse.persistence.Version.getVersion()
方法的一些代码示例,展示了Version.getVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getVersion()
方法的具体详情如下:
包路径:org.eclipse.persistence.Version
类名称:Version
方法名:getVersion
[英]Returns version String containing three part version number and build qualifier.
[中]返回包含三部分版本号和内部版本限定符的版本字符串。
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Return the adapter version
*
* @return the version of the adapter
*/
public String getAdapterVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.nosql
/**
* Return the adapter version
*
* @return the version of the adapter
*/
@Override
public String getAdapterVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public String getAdapterVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.nosql
public String getAdapterVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public String getEISProductVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.nosql
public String getEISProductVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.nosql
public String getAdapterVersion() {
return Version.getVersion();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public static String getVersionString ( ) {
String verString;
verString = getVersion() + "." + getQualifier();
return( verString );
}
代码示例来源:origin: org.jipijapa/jipijapa-eclipselink
public EclipseLinkPersistenceProviderAdaptor() {
logger.trace("EclipseLink integration activated");
int major, minor, rev;
try {
String[] eclipseLinkVersion = org.eclipse.persistence.Version.getVersion().split("\\.");
major = Integer.parseInt(eclipseLinkVersion[0]);
minor = Integer.parseInt(eclipseLinkVersion[1]);
rev = Integer.parseInt(eclipseLinkVersion[2]);
} catch (NumberFormatException ex) {
logger.warn("Could not parse EclipseLink version string " + ex + ", using default configuration");
major = -1;
minor = -1;
rev = -1;
}
if (major < 2) {
logger.warn("EclipseLink 1.x is not tested. You are running version " + major + '.' + minor + '.' + rev + ". ");
hasJTABug = true;
} else {
// Version-specific handling here
if ( (major == 2 && minor == 3 && rev <= 2) || (major == 2 && minor < 3) ) {
logger.info("Enabling workaronud for EclipseLink bug 365704 for EclipseLink 2.3.2 and older");
hasJTABug = true;
} else {
hasJTABug = false;
}
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.modelgen.processor
String elVersion = "EclipseLink-" + Version.getVersion() + ".v" + Version.getBuildDate() + "-r" + Version.getBuildRevision();
writer.append("@Generated(value=\"");
if (isNewJava) {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.jpa.modelgen
writer.append("@Generated(value=\"EclipseLink-" + Version.getVersion() + ".v" + Version.getBuildDate() + "-r" + Version.getBuildRevision() + "\", date=\"" + sdf.format(date) + "\")\n");
writer.append("@StaticMetamodel(" + className + ".class)\n");
内容来源于网络,如有侵权,请联系作者删除!