Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Collection Object in FindBy*** Method of EJB  RSS feed

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What will happen if i use java.util.List as return type for findBy*** method in EJB. Because List Objects supports null values and also it supports the duplicates .
Regards,
M.S.Raman.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I believe as long as it is a Collection or an Enumeration, you should be fine...
Chuck
 
Something must be done about this. Let's start by reading this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!