private static Map<String, Object> getPersistenceContextProperties(final PersistenceContext persistenceContext) {
final Map<String, Object> properties = new HashMap<>();
for (final PersistenceProperty property : persistenceContext.properties()) {
String propertyValue = property.value();
Matcher matcher = PROPERTY_PATTERN.matcher(propertyValue);
while(matcher.find()) {
String p = matcher.group();
String systemProperty = p.substring(2, p.length() - 1);
propertyValue = propertyValue.replace(p, System.getProperty(systemProperty, p));
}
properties.put(property.name(), propertyValue);
}
return properties;
}
JpaUnitContext.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:jpa-unit
作者:
评论列表
文章目录