• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate many-to-many ...with DetachedCriteria/ Criteria

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In our project we have a many-to-many relationship between 2 tables, so looked up many webpages explaning the how-to etc.

but none of the examples I found, used DetachedCriteria/ Criteria....all explained the nuances using HQL

In our project, the user is shown a search screen, with many fields (name, from-date, to-date and so on) and so we are using DetachedCriteria

but the hibernate generated query cannot be executed ...getting a ORA:00942 (table or view does not exist).

Could there be issue between detachedCriteria and its hibernate generated sql and Many-to-Many table mappings?

Any example that explains fetching data of many-to-many mapped tables and using hibernate criteria ?

~g1
 
My cellmate was this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic