• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

one to many mapping Spring Hibernate

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi I need some help on this:
One prod_id in the Product table will have many prod_id in the Infra_services table. But somehow I'm getting only one row of data from Infra_services table everytime.

here's my mapping files:




and the java bean files will be:


Can someone point out how I'm suppose to get multiple rows of data finstead of just one row? Thanks!
 
vivien siu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
never mind it's ok already. I solved it
[ August 02, 2006: Message edited by: vivien siu ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am so glad you solved the problem. But why not share your solution with everyone else? That way, we can all learn from one another.

Also, it would seem that this question is only about Hibernate, so I am moving this to our ORM forum.

Thanks.
 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this something you have missing entry for <many-to-one> in the mapping file of com.tm.wsbs.batch.model.Infraservices ?
reply
    Bookmark Topic Watch Topic
  • New Topic