JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Web Framework » JSF  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 hibernate jsF問題
cool3690





發文: 44
積分: 0
於 2017-08-29 02:02 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
想請教我hibernate這邊想傳arraylist到JAVA
1
2
3
4
5
6
7
8
9
10
11
12
public java.util.List<com.tiptop.db.entity.APK> APKchart(ArrayList<String> apk01){      
  Iterator it;
  String hql2 = "from APK where apk08 < 50";
  String hql3 = "select apk01 from apk_file where apk08 < 50";
  
  java.util.List list2 = this.hibernateTemplate.find(hql2);
        it=list2.iterator(); 
  while (it.hasNext())
  {apk01.add(it.next().toString());
  }     
        return list2;
    }

但傳的值都會有錯誤

我預計他要顯示發票號碼的.......
請問該怎麼改,謝謝


cool3690 edited on 2017-08-29 03:30
reply to postreply to post
作者 Re:hibernate jsF問題 [Re:cool3690]
cool3690





發文: 44
積分: 0
於 2017-08-29 03:32 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
找到問題點了,要先呼叫原本的list然後再取出部分才可以,
已解開


reply to postreply to post
» JWorld@TW »  Web Framework » JSF

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8