隨筆-60  評論-35  文章-15  trackbacks-0
          Here's how to get hibernate-tools 3.1beta4 to work, disabling any MyEclipse Hibernate functionality (NOTE: This is only meant as a workaround if you absolutely NEED hibernate-tools, following the steps below might seriously screw your Eclipse/MyEclipse installation. So please only proceed if you really know what you're doing!)

          OK, on to the gory details...
          以下翻譯開始


          1. Locate the MyEclipse install location, it should contain two folders "plugins" and "features". Let's call this $MYECLIPSE.
            進入MyEclipse目錄,然后將找到plugins和feature兩個目錄,下面我們將MyEclipse的目錄叫做$MYECLIPSE
          2. Create two folders named "disabled_plugins" and "disabled_features" in $MYECLIPSE.
            在$MYECLIPSE建立兩個空白目錄disabled_plugins和disabled_feature
          3. Move the MyEclipse Hibernate feature (folder: $MYECLIPSE/features/com.genuitec.myeclipse.hibernate_4.0.100 ) to the "disabled_features" folder
            把“$MYECLIPSE/features/com.genuitec.myeclipse.hibernate_4.0.100”目錄移動到disabled_features中
          4. Move the following folders from $MYECLIPSE/plugins to "disabled_plugins":

            1. com.genuitec.eclipse.hibernate_4.0.100
            2. com.genuitec.myeclipse.hibernate_4.0.100
            3. org.hibernate.eclipse.console_4.0.100
            4. org.hibernate.eclipse.mapper_4.0.100
            5. org.hibernate.eclipse_4.0.100

            把$MYECLIPSE/plugins 中以上的五個目錄或文件拷貝到 disabled_plugins目錄中
          5. Last step: remove the dependency from the main MyEclipse feature. Open the file $MYECLIPSE/features/com.genuitec.myeclipse.enterprise.workbench_4.0.100/feature.xml.
            Locate the following snippet:
            最后一步,修改“$MYECLIPSE/features/com.genuitec.myeclipse.enterprise.workbench_4.0.100/feature.xml”這個文件,找到下列代碼
            Code:
            <includes
            ? ? ? ? ?id="com.genuitec.myeclipse.hibernate"
            ? ? ? ? ?version="4.0.100"
            ? ? ? ? ?name="MyEclipse Hibernate Support"/>

            ... and comment it out, like:
            注解它,修改后的代碼如下
            Code:
            <!--
            <includes
            ? ? ? ? ?id="com.genuitec.myeclipse.hibernate"
            ? ? ? ? ?version="4.0.100"
            ? ? ? ? ?name="MyEclipse Hibernate Support"/>
            -->

            Now restart Eclipse (preferably using "-clean" switch), install hibernate-tools 3.1 (if you have not already done so) and enjoy!
            重新啟動MyEcliplse然后按照正常安裝插件的方式安裝 Hibernate tools 3.1
          posted on 2006-06-09 15:13 Q系列類、方法、變量…… 閱讀(1807) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 屯留县| 万盛区| 华安县| 昌图县| 兴国县| 万山特区| 石首市| 本溪| 龙州县| 斗六市| 潜江市| 柏乡县| 张家口市| 屯昌县| 遂宁市| 勃利县| 杭州市| 中方县| 淅川县| 东兰县| 沁阳市| 当涂县| 德昌县| 南丰县| 襄汾县| 固原市| 温宿县| 肥西县| 清镇市| 巧家县| 金乡县| 洮南市| 赣州市| 金昌市| 宁德市| 白玉县| 和顺县| 黄浦区| 华容县| 新营市| 乐都县|