• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

IN clause in finder method

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai all,
iam using jboss 3.0 and mysql.i want to use the IN clause in the finder method.

the finder method gives the following error while deployment.




plz help me to implement IN clause in EJB.

Thanks
Siva

[ November 30, 2004: Message edited by: Sivakumar Nachimuthu ]
[ December 09, 2004: Message edited by: Sivakumar Nachimuthu ]
 
Sivakumar Nachimuthu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i came to know that IN clause with variable as a argument is not supported in EJB.
i have written session bean to search the DB using JDBC.So i get the result set.But in previous cases of Add,Modify,View...i display the results in JTable as remote interfaces.
i have two possible solutions here.
1) For every row of reultset ,use the findByPrimaryKey method and get the remote interfaces and store them in JTable.
but if i use this,i have to go to the database again and again for the already collected data.

2) Create the diff table model to use the custom objects returned from result set.
but i have to handle two diff objects in the JTable,which will complicate further operations.

suggest me a good solution.

Thanks
Siva
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic