这是我的hashmap定义的地方,我需要在应用程序重新启动时填充地图,是否由hbm.xml完成? 公共课MMTUtil {
private static Map<String, String> domainDocumentationMap = null;
static
{
domainDocumentationMap = new HashMap<String, String>();
domainComboDocumentationMap = new HashMap<String, String>();
}
public static Map<String, String> getDomainDocumentationMap(){
return domainDocumentationMap;
}
public static void setDomainDocumentationMap(String objectName, String documentationLink) {
MMTUtil.domainDocumentationMap.put(objectName, documentationLink);
}
这是我的hbm.xml
<hibernate-mapping package="com.navteq.umr.dto">
<class name="UMRDocumentationDTO" table="UMR_DOCUMENTATION">
<composite-id name="id" class="UMRDocumentationDTO$Id">
<key-property name="objectType" type="string" column="OBJECT_TYPE"
length="50">
</key-property>
<key-property name="objectName" type="string" column="OBJECT_NAME"
length="500">
</key-property>
</composite-id>
<!-- <property name="objectType" type="string" column="OBJECT_TYPE" length="50">
</property> <property name="objectName" type="string" column="OBJECT_NAME"
length="500"> </property> -->
<property name="documentationLink" type="string" column="DOCUMENTATION_LINK"
length="1000">
</property>
</class>
我该怎么办,或采取什么方法?