锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97在线精品,日韩一区二区高清,永久免费在线http://www.aygfsteel.com/byrtiger/category/34440.htmlLoving Javazh-cnThu, 11 Sep 2008 19:52:24 GMTThu, 11 Sep 2008 19:52:24 GMT60OfBiz閮ㄧ講http://www.aygfsteel.com/byrtiger/archive/2008/09/11/228325.html榪介鑸炶?/dc:creator>榪介鑸炶?/author>Thu, 11 Sep 2008 03:44:00 GMThttp://www.aygfsteel.com/byrtiger/archive/2008/09/11/228325.htmlhttp://www.aygfsteel.com/byrtiger/comments/228325.htmlhttp://www.aygfsteel.com/byrtiger/archive/2008/09/11/228325.html#Feedback0http://www.aygfsteel.com/byrtiger/comments/commentRss/228325.htmlhttp://www.aygfsteel.com/byrtiger/services/trackbacks/228325.html

涓錛庨厤緗?/span>

1錛?/span>framework涓嬬殑entity閲岀殑config閲岄潰鎵撳紑entityengine.xml鏂囦歡錛?/span>鍦ㄦ鏂囦歡閲屾壘鏈夊洓琛岄兘鏄互<delegator name寮澶寸殑錛岃灝嗛噷闈㈢殑datasource-name="localderby"閮芥敼涓?/span>datasource-name="localmysql"銆?/span>

2錛?/span>鍦ㄦ鏂囦歡閲屾壘鍒般?/span>datasource-name="localmysql"寮澶寸殑浠g爜鍖哄煙錛屽皢閲岄潰鐨?/span>jdbc-username= 鍜?/span>jdbc-password= 閮芥敼涓轟綘瀹夎mysql鏃剁殑鐢ㄦ埛鍚嶅拰瀵嗙爜銆?/span>

3錛?/span>鎴戜滑瑕佸湪entity涓嬬殑lib涓嬬殑jdbc涓鍏?/span>mysql5.0鐨勯┍鍔?/span>錛屽悓鏃跺姞鍏?span lang="EN-US">xapool.jar銆?span lang="EN-US">

    4)鍦?span lang="EN-US">mysql涓緩ofbiz鏁版嵁搴擄紝鍚﹀垯鍦ㄤ笅闈㈤儴緗插伐紼嬩腑鎶ラ敊

    浜岋紟閮ㄧ講

    1) 鍦ㄥ懡浠よ涓嬭繍琛?span lang="EN-US"> ant run-install

        (鍓嶆彁錛氬湪鐜鍙橀噺涓坊鍔?span lang="EN-US"> ant\bin)

2) 榪愯 startofbiz.bat

 

涓? 宸ョ▼绔彛鍙風殑淇敼

  淇敼framework/base/config/ofbiz-containers.xml

1錛?span style="font: 7pt 'Times New Roman'; font-size-adjust: none; font-stretch: normal">  淇敼ofbiz绔彛鍙?span lang="EN-US">

    <property name="http-connector" value="connector">

            <property name="port" value="8080"/>

      </property>

 

  2)淇敼欏圭洰閾炬帴鐨勭鍙e彿

<property name="https-connector" value="connector">

          <property name="port" value="8443"/>

 </property>

 

鍥涳紟榪愯

 鍦ㄦ祻瑙堝櫒涓緭鍏ュ湴鍧 http://localhost:8080

 





]]>
Eclipse涓皟璇昈fBizhttp://www.aygfsteel.com/byrtiger/archive/2008/09/08/227792.html榪介鑸炶?/dc:creator>榪介鑸炶?/author>Mon, 08 Sep 2008 10:23:00 GMThttp://www.aygfsteel.com/byrtiger/archive/2008/09/08/227792.htmlhttp://www.aygfsteel.com/byrtiger/comments/227792.htmlhttp://www.aygfsteel.com/byrtiger/archive/2008/09/08/227792.html#Feedback0http://www.aygfsteel.com/byrtiger/comments/commentRss/227792.htmlhttp://www.aygfsteel.com/byrtiger/services/trackbacks/227792.html     Filee -> Import -> General -> Existing Projects into Workspace
2.Eclipse涓負.bsh,.ftl鏂囦歡娣誨姞緙栬緫鍣?br />   瀹夎Freemarker Eclipse plug-in.
  Windows > Preferences > General > Editors > File Associations and add "*.bsh" and associate it with the Scrapbook editor.
3.淇敼 startofbiz.bat鏂囦歡

ECHO OFF
REM ####################################################
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements.  See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership.  The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License"); you may not use this file except in compliance
REM with the License.  You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing,
REM software distributed under the License is distributed on an
REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
REM KIND, either express or implied.  See the License for the
REM specific language governing permissions and limitations
REM under the License.
REM ########################################################
ECHO ON

"%JAVA_HOME%\bin\java" -Xms256M -Xmx512M -Duser.language=en -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log


4.Eclipse鑿滃崟 Run -> Open Debug Dialog
   閫夋嫨 Remote Java Application 
    娉ㄦ剰: 鍙充晶闈㈡澘涓殑 Port 涓轟笂闈㈢孩鑹叉爣璁幫紝涓よ呭繀闇涓鑷淬?/span>







]]>
OfBiz涓殑鏁版嵁鎿嶄綔http://www.aygfsteel.com/byrtiger/archive/2008/09/08/227787.html榪介鑸炶?/dc:creator>榪介鑸炶?/author>Mon, 08 Sep 2008 09:59:00 GMThttp://www.aygfsteel.com/byrtiger/archive/2008/09/08/227787.htmlhttp://www.aygfsteel.com/byrtiger/comments/227787.htmlhttp://www.aygfsteel.com/byrtiger/archive/2008/09/08/227787.html#Feedback0http://www.aygfsteel.com/byrtiger/comments/commentRss/227787.htmlhttp://www.aygfsteel.com/byrtiger/services/trackbacks/227787.html
1)鍒涘緩GenericDelegator瀵硅薄
  1.1 service涓?br />   public static Map createHelloPerson(DispatchContext dctx, Map context) {
          GenericDelegator delegator = dctx.getDelegator();
     ...
  }
  1.2鎵嬪伐寤虹珛GenericDelegator瀵硅薄
  GenericDelegator delegator = GenericDelegator.getGenericDelegator("default");

2)Insert a record
  閫氳繃璋冪敤delegator瀵硅薄鐨刧etNextSeqId(), makeValue(String entityName, Map fields)鍜宑reate()鏂規硶銆?br />   渚嬪錛?br />        String helloPersonId = delegator.getNextSeqId("HelloPerson");
    GenericValue helloPerson = delegator.makeValue("HelloPerson",
                    UtilMisc.toMap("helloPersonId", helloPersonId)); // create a GenericValue from ID we just got
      helloPerson.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue
    delegator.create(helloPerson); // store the generic value, ie persists it
   
3)Remove a record
    delegator.removeByAnd(String entityName, Map fields);
   
4)Strore a record
    渚嬪錛?br />       Map pk = UtilMisc.toMap("attribute1", attribute1Value, "attribute2", attribute2Value);//pk涓瓨鍌ㄤ簡鏌ヨ鏉′歡
    GenericValue obj = delegator.findByPrimaryKey("ClassName", pk);
      obj.setNonPKFields(context);//contex涓篗ap綾誨瀷錛屽瓨鍌ㄤ簡瑕佹洿鏂扮殑瀛楁
    obj.store();

5)Store records
    List resultList = delegator.findAll(String entityName, List orderBy);
    List toStore = new ArrayList();
    toStore.addAll(resultList);
    delegator.storeAll(toStore);
   
6)Look for record/records
     findByAnd錛宖indByCondition銆乫indByLike銆乫indByOr銆乫indByPrimaryKey銆?br />      findListIteratorByCondition銆?findall銆乫indAllByPrimaryKeys
    
2) 渚濇嵁鏁板煎璞¤繘琛岃闂?br />     鍦ㄧ幇鏈夌殑鏁板煎璞?GenericValue綾誨瀷)涓婂彲浠ヨ繘琛屼笅鍒楁搷浣滐細
        鏍規嵁鍏崇郴鏌ユ壘鍏寵仈淇℃伅getRelated錛屽寘鎷琯etRelated銆乬etRelatedByAnd銆乬etRelatedDummyPK銆乬etRelatedMulti銆乬etRelatedOrderBy銆?br />         鍒鋒柊鏈暟鍊煎璞efresh
        淇濆瓨鏈暟鍊煎璞tore錛屼富瑕佺敤浜庝慨鏀瑰悗鐨勪繚瀛?br />         鍒犻櫎鏁板煎璞emove,鍖呮嫭鍒犻櫎鏈暟鍊煎璞emove鍜屽垹闄ゆ煇涓叧鑱旂殑鏁板煎璞emoveRelated
        鍦ㄧ幇鏈夋暟鍊煎璞′笂鐨勬搷浣滄槸閫氳繃璋冪敤
   
    鏇村姞鍏蜂綋鐨勪俊鎭彲鍙傝冿細http://www.opentaps.org/javadocs/release-1.0.1/framework/api/




]]>
瀛︿範OfBiz鐨勭綉绔?/title><link>http://www.aygfsteel.com/byrtiger/archive/2008/09/05/227227.html</link><dc:creator>榪介鑸炶?/dc:creator><author>榪介鑸炶?/author><pubDate>Fri, 05 Sep 2008 07:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/byrtiger/archive/2008/09/05/227227.html</guid><wfw:comment>http://www.aygfsteel.com/byrtiger/comments/227227.html</wfw:comment><comments>http://www.aygfsteel.com/byrtiger/archive/2008/09/05/227227.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/byrtiger/comments/commentRss/227227.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/byrtiger/services/trackbacks/227227.html</trackback:ping><description><![CDATA[http://www.opensourcestrategies.com/ofbiz/tutorials.php<br /> http://ofbiz.apache.org/<br /> http://www.opentaps.org/index.php<br /> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index<br /> 灝ゅ叾鏄涓涓噷闈㈡湁寰堝涓嶉敊鐨勬枃绔狅紝涓嶈繃閮芥槸鑻辨枃鐨勶紝鑰愬績鐨勭湅涓嬪幓鍚с?br /> <br /> <img src ="http://www.aygfsteel.com/byrtiger/aggbug/227227.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/byrtiger/" target="_blank">榪介鑸炶?/a> 2008-09-05 15:07 <a href="http://www.aygfsteel.com/byrtiger/archive/2008/09/05/227227.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">紫金县</a>| <a href="http://" target="_blank">曲周县</a>| <a href="http://" target="_blank">喀喇</a>| <a href="http://" target="_blank">房产</a>| <a href="http://" target="_blank">巴林右旗</a>| <a href="http://" target="_blank">怀来县</a>| <a href="http://" target="_blank">巧家县</a>| <a href="http://" target="_blank">辉县市</a>| <a href="http://" target="_blank">沙雅县</a>| <a href="http://" target="_blank">搜索</a>| <a href="http://" target="_blank">神池县</a>| <a href="http://" target="_blank">泰宁县</a>| <a href="http://" target="_blank">南投市</a>| <a href="http://" target="_blank">肃北</a>| <a href="http://" target="_blank">通河县</a>| <a href="http://" target="_blank">华安县</a>| <a href="http://" target="_blank">丽水市</a>| <a href="http://" target="_blank">莆田市</a>| <a href="http://" target="_blank">九台市</a>| <a href="http://" target="_blank">东海县</a>| <a href="http://" target="_blank">胶南市</a>| <a href="http://" target="_blank">新巴尔虎左旗</a>| <a href="http://" target="_blank">哈尔滨市</a>| <a href="http://" target="_blank">仙居县</a>| <a href="http://" target="_blank">平凉市</a>| <a href="http://" target="_blank">金堂县</a>| <a href="http://" target="_blank">滨州市</a>| <a href="http://" target="_blank">呈贡县</a>| <a href="http://" target="_blank">延津县</a>| <a href="http://" target="_blank">翁牛特旗</a>| <a href="http://" target="_blank">德阳市</a>| <a href="http://" target="_blank">怀远县</a>| <a href="http://" target="_blank">六盘水市</a>| <a href="http://" target="_blank">朝阳市</a>| <a href="http://" target="_blank">石渠县</a>| <a href="http://" target="_blank">南通市</a>| <a href="http://" target="_blank">芦溪县</a>| <a href="http://" target="_blank">南投市</a>| <a href="http://" target="_blank">稷山县</a>| <a href="http://" target="_blank">瑞金市</a>| <a href="http://" target="_blank">来凤县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>