Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

MyBatis  RSS feed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In mybatis, if I need java.util.List for result type, and I  don't know what kind of the  type in the list should I use.  I don't know list's type correspond witch JAVA Bean.
What should I do?
 
Marshal
Posts: 61805
193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain what you mean about return type. Do you mean what the E should be in List<E>? Do you know what type of object you are dealing with. What's MyBatis? Does that have any relevance to the return type?
 
xin yi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Please explain what you mean about return type. Do you mean what the E should be in List<E>? Do you know what type of object you are dealing with. What's MyBatis? Does that have any relevance to the return type?



Yes, I don't know what the E should be in[tt] List<E>. Don't you know mybatis? Where are you come from ?  Can you speak Chinese? My English level is very bad...
 
Saloon Keeper
Posts: 5052
135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

xin yi wrote:Can you speak Chinese? My English level is very bad...


These are English-language only forums, so that's not an option.
 
xin yi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:

xin yi wrote:Can you speak Chinese? My English level is very bad...


These are English-language only forums, so that's not an option.


but, I don't think so.
 
Campbell Ritchie
Marshal
Posts: 61805
193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

xin yi wrote:. . .

Tim Moores wrote:These are English-language only forums, so that's not an option.

but, I don't think so.

Tim is right; we are based in an English‑speaking country and all posts are in English. Maybe there are Chinese‑speaking websites, but we don't know whether the advice you get there would be as good as you get here.
 
xin yi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:

xin yi wrote:. . .Tim is right; we are based in an English‑speaking country and all posts are in English. Maybe there are Chinese‑speaking websites, but we don't know whether the advice you get there would be as good as you get here.



Oh

 
Greenhorn
Posts: 7
Hibernate Redhat Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

xin yi wrote:In mybatis, if I need java.util.List for result type, and I  don't know what kind of the  type in the list should I use.  I don't know list's type correspond witch JAVA Bean.
What should I do?



Hi Xin, what do you expect the result of your query? please attach a snippet of your custom mapper xml file..
 
xin yi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Arif Rakhman wrote:
Hi Xin, what do you expect the result of your query? please attach a snippet of your custom mapper xml file..


I'm so surprise to receive your replay.  thanks.
 
Campbell Ritchie
Marshal
Posts: 61805
193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

xin yi wrote:. . . I'm so surprise to receive your replay.  thanks.

Yes, it was a useful reply, wasn't it?
 
Campbell Ritchie
Marshal
Posts: 61805
193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shall we get back to the original topic. Please explain what you meant originally. Please show us some code and some XML, as has been helpfully suggested already. This discussion will probably move to another forum because the XML will be too difficult for the “Beginning” forum.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!