锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩一区二区三区国产,天堂аⅴ在线地址8,秋霞电影一区二区http://www.aygfsteel.com/libin2722/category/36801.html铏氬叾蹇冿紝鍙В澶╀笅涔嬮棶錛涗笓鍏跺績錛屽彲娌誨ぉ涓嬩箣瀛︼紱闈欏叾蹇冿紝鍙偀澶╀笅涔嬬悊錛涙亽鍏跺績錛屽彲鎴愬ぉ涓嬩箣涓氥?/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()鏂規硶

       For example錛?/span>

       public List getItemPrices()

       throws PortalException, SystemException {

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

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

*/

return ShoppingItemPriceLocalServiceUtil.getItemPrices(getItemId());

/*

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

*/

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

    }

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

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

濡傦細

List list = ActiveEntry.getCheckItemEntries ();

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

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

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

淇敼涓哄涓嬪唴瀹癸紙涔熷彲鐩存帴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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 淮南市| 丹巴县| 文昌市| 海伦市| 连南| 德江县| 兴安盟| 荃湾区| 龙川县| 扎兰屯市| 郴州市| 汉中市| 疏勒县| 杭锦旗| 东辽县| 图们市| 共和县| 商南县| 射洪县| 嘉鱼县| 柳州市| 邵武市| 庆元县| 井陉县| 大城县| 息烽县| 绍兴县| 河北省| 新津县| 衡水市| 凤山市| 韶山市| 图木舒克市| 施甸县| 寿光市| 永年县| 新巴尔虎右旗| 梧州市| 兴宁市| 凤庆县| 昌江|