Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Getting Mapping Exception in Hibernate

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an XML which goes some thing like this

<Form>
<dataset1>


</dataset1>
<dataset2>
</dataset2>
<dataset3>
</dataset3>
</Form>


The way my pojo classes have been created is that I have Form Class which actually is a container for all the datasets. The dataset are basically collections in the Form class. Unfortunately, I haven't defined a .hbm.xml file for Form because it doesn't have any table. When I tried to insert the POJO, I get an error saying unknown entity Form. I know a lot of people might have faced this situation, how can I handle this case

Thanks
[ May 22, 2007: Message edited by: Harjit Singh ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then don't call save(form), and loop through your collection of datasets and call save(dataset) on each one.

Mark
reply
    Bookmark Topic Watch Topic
  • New Topic