锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产高清在线精品一区二区三区,亚洲男人天堂,99re91这里只有精品http://www.aygfsteel.com/libin2722/category/36801.html铏氬叾蹇冿紝鍙В澶╀笅涔嬮棶錛涗笓鍏跺績錛屽彲娌誨ぉ涓嬩箣瀛︼紱闈欏叾蹇冿紝鍙?zhèn)熷ぉ涓嬩箣鐞嗗Q涙亽鍏跺績錛屽彲鎴愬ぉ涓嬩箣涓氥?/description>zh-cnSat, 23 May 2009 20:33:16 GMTSat, 23 May 2009 20:33:16 GMT60鎼緩寮鍙戠幆澧?/title><link>http://www.aygfsteel.com/libin2722/articles/271700.html</link><dc:creator>紺肩墿</dc:creator><author>紺肩墿</author><pubDate>Wed, 20 May 2009 05:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/libin2722/articles/271700.html</guid><wfw:comment>http://www.aygfsteel.com/libin2722/comments/271700.html</wfw:comment><comments>http://www.aygfsteel.com/libin2722/articles/271700.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/libin2722/comments/commentRss/271700.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/libin2722/services/trackbacks/271700.html</trackback:ping><description><![CDATA[     鎽樿: Normal 0 7.8 紓? 0 2 false false false MicrosoftInternetExplorer4 st1\:*{behav...  <a href='http://www.aygfsteel.com/libin2722/articles/271700.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/libin2722/aggbug/271700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/libin2722/" target="_blank">紺肩墿</a> 2009-05-20 13:24 <a href="http://www.aygfsteel.com/libin2722/articles/271700.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Liferay 4.4.1 鏁村悎 SpagoBI 1.9.4 姝ラhttp://www.aygfsteel.com/libin2722/articles/271698.html紺肩墿紺肩墿Wed, 20 May 2009 05:23:00 GMThttp://www.aygfsteel.com/libin2722/articles/271698.htmlhttp://www.aygfsteel.com/libin2722/comments/271698.htmlhttp://www.aygfsteel.com/libin2722/articles/271698.html#Feedback0http://www.aygfsteel.com/libin2722/comments/commentRss/271698.htmlhttp://www.aygfsteel.com/libin2722/services/trackbacks/271698.html闃呰鍏ㄦ枃

紺肩墿 2009-05-20 13:23 鍙戣〃璇勮
]]>
Liferay Portal浜屾寮鍙戞寚鍗楋紙1錛?/title><link>http://www.aygfsteel.com/libin2722/articles/247017.html</link><dc:creator>紺肩墿</dc:creator><author>紺肩墿</author><pubDate>Thu, 18 Dec 2008 00:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/libin2722/articles/247017.html</guid><wfw:comment>http://www.aygfsteel.com/libin2722/comments/247017.html</wfw:comment><comments>http://www.aygfsteel.com/libin2722/articles/247017.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/libin2722/comments/commentRss/247017.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/libin2722/services/trackbacks/247017.html</trackback:ping><description><![CDATA[     鎽樿: v":* {behavior:url(#default#VML);} o":* {behavior:url(#default#VML);} w":* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 紓?0 2 false false false Micro...  <a href='http://www.aygfsteel.com/libin2722/articles/247017.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/libin2722/aggbug/247017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/libin2722/" target="_blank">紺肩墿</a> 2008-12-18 08:48 <a href="http://www.aygfsteel.com/libin2722/articles/247017.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Liferay 鏂囨。http://www.aygfsteel.com/libin2722/articles/247016.html紺肩墿紺肩墿Thu, 18 Dec 2008 00:47:00 GMThttp://www.aygfsteel.com/libin2722/articles/247016.htmlhttp://www.aygfsteel.com/libin2722/comments/247016.htmlhttp://www.aygfsteel.com/libin2722/articles/247016.html#Feedback0http://www.aygfsteel.com/libin2722/comments/commentRss/247016.htmlhttp://www.aygfsteel.com/libin2722/services/trackbacks/247016.html闃呰鍏ㄦ枃

紺肩墿 2008-12-18 08:47 鍙戣〃璇勮
]]>
鍦╨iferay涓敓鎴恛ne to many 鍏崇郴璇存槑http://www.aygfsteel.com/libin2722/articles/247012.html紺肩墿紺肩墿Thu, 18 Dec 2008 00:39:00 GMThttp://www.aygfsteel.com/libin2722/articles/247012.htmlhttp://www.aygfsteel.com/libin2722/comments/247012.htmlhttp://www.aygfsteel.com/libin2722/articles/247012.html#Feedback0http://www.aygfsteel.com/libin2722/comments/commentRss/247012.htmlhttp://www.aygfsteel.com/libin2722/services/trackbacks/247012.html鍦?/span>liferay涓敓鎴?/span>one to many 鍏崇郴璇存槑

1錛氬湪service.xml涓厤緗?/span>

For example錛?/span>

<column

       name="shoppingItemPrices"

       type="Collection"

       entity="ShoppingItemPrice"

       mapping-key="itemId"

/>

璇存槑錛?/span> entity鍜?/span>mapping-key灞炴ц鎸囧畾灝嗗緩绔嬩竴涓竴瀵瑰鐨勫叧緋匯?/span>

2錛氳繍琛?/span>ant build

       鐢熸垚鐩稿叧鏂囦歡

3錛氬湪鐢熸垚鐨勫疄浣撳疄鐜扮被涓紝濡?/span>ShoppingItemImp.java錛屾柊澧?/span>getShoppingItemPrice()鏂規(guī)硶

       For example錛?/span>

       public List getItemPrices()

       throws PortalException, SystemException {

/*姝ゅreturn鏈?/span>2縐嶅啓娉?/span>

絎竴縐嶆槸瑕佹眰鍦ㄥ叧緋誨疄浣撲腑瀹氫箟鏍規(guī)嵁鍏寵仈瀹炰綋id榪涜鏌ヨ鐨勬柟娉曪紝濡傦細(xì)

*/

return ShoppingItemPriceLocalServiceUtil.getItemPrices(getItemId());

/*

絎簩縐嶆槸閫氳繃涓氬姟灞備唬鐞嗙被鑾風(fēng)殑瀹炰綋鐨勬寔涔呯被瀹炰緥榪涜鎿嶄綔

*/

return ActiveEntryLocalServiceUtil.getActiveEntryPersistence().getCheckItemEntries(this.getActiveId());

    }

4錛氬啀嬈¤繍琛?/span> ant build

濡傛渚垮彲鍦ㄤ嬌鐢ㄥ疄浣撶殑鏃跺欑洿鎺ヨ幏鍙栧叧鑱斿璞″疄浣?/span>

濡傦細(xì)

List list = ActiveEntry.getCheckItemEntries ();

濡傛灉瑕佸湪hbm閰嶇疆鏂囦歡涓敓鎴愪竴瀵瑰鍏崇郴鎻忚堪錛屽垯闇淇敼freemarker妯℃澘鏂囦歡

鏂囦歡璺緞錛?/span>com/liferay/portal/tool/servicebuilder/dependencies/hbm_xml.flt

錛堝鏋滃鍏朵粬鐢熸垚鏂囦歡鍐呭鍋氳皟鏁達(dá)紝涔熷彲淇敼鍏朵粬瀵瑰簲鐨勬ā鏉挎枃浠訛級

淇敼涓哄涓嬪唴瀹癸紙涔熷彲鐩存帴copy錛?/span>

<#list entities as entity>

    <#if entity.hasColumns()>

       <class name="${packagePath}.model.impl.${entity.name}Impl" table="${entity.table}">

           <cache usage="read-write" />

           <#if entity.hasCompoundPK()>

              <composite-id name="primaryKey" class="${packagePath}.service.persistence.${entity.name}PK">

                  <#assign pkList = entity.getPKList()>

                  <#list pkList as column>

                     <key-property name="${column.name}"

                     <#if column.name != column.DBName>

                         column="${column.DBName}"

                     </#if>

                     />

                  </#list>

              </composite-id>

           <#else>

              <#assign column = entity.getPKList()?first>

              <id name="${column.name}"

                  <#if column.name != column.DBName>

                     column="${column.DBName}"

                  </#if>

                  type="<#if !entity.hasPrimitivePK()>java.lang.</#if>${column.type}">

                  <#if column.idType??>

                     <#assign class = serviceBuilder.getGeneratorClass("${column.idType}")>

                     <#if class == "class">

                         <#assign class = column.IdParam>

                     </#if>

                  <#else>

                     <#assign class = "assigned">

                  </#if>

                  <generator class="${class}"

                  <#if class == "sequence">

                         <param name="sequence">${column.IdParam}</param>

                     </generator>

                  <#else>

                     />

                  </#if>

              </id>

           </#if>

           <#list entity.columnList as column>

              <#if column.EJBName??>

                  <#assign ejbName = true>

              <#else>

                  <#assign ejbName = false>

              </#if>

              <#if !column.isPrimary() && !column.isCollection() && !ejbName>

                  <property name="${column.name}"

                  <#if column.name != column.DBName>

                     column="${column.DBName}"

                  </#if>

                  <#if column.isPrimitiveType() || column.type == "String">

                      type="com.liferay.util.dao.hibernate.${serviceBuilder.getPrimitiveObj("${column.type}")}Type"

                  </#if>

                  />

              </#if>

              <#if !column.isPrimary() && column.isCollection()>

                      

                  <#if column.isMappingOneToMany()>

                         <set name="${column.name}" lazy="true">

                         <key column="${column.getMappingKey()}"/>

                         <one-to-many class="${packagePath}.service.persistence.${column.EJBName}" />

                         </set>

                    </#if>

                   

              </#if>

           </#list>

       </class>

    </#if>

</#list>



紺肩墿 2008-12-18 08:39 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 钦州市| 霞浦县| 临武县| 延长县| 申扎县| 开平市| 柘荣县| 黔东| 昌图县| 宁强县| 嘉义县| 元谋县| 噶尔县| 安义县| 沂源县| 蕉岭县| 称多县| SHOW| 如东县| 寿宁县| 阿巴嘎旗| 池州市| 鲁山县| 莲花县| 读书| 安顺市| 郓城县| 勃利县| 牡丹江市| 葵青区| 宁乡县| 仪征市| 息烽县| 丽水市| 綦江县| 吴桥县| 襄樊市| 司法| 安图县| 仁寿县| 桃园县|