• 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

struts2 CreateQurey

 
Ranch Hand
Posts: 87
Hibernate Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I want all the child records with a compnayid and also parent records different company id. ie. a jsp will display all the records not belong to his company and he can select them and that gets stored with his company id. So next time when displayed it should the already selected ones and all the records from the he does not belong. I tried writing something like this but i get an ewrror


DEBUG [http-8080-Processor22] (ErrorCounter.java91) - throwQueryException() : no errors DEBUG [http-8080-Processor22] (HqlSqlBaseWalker.java111) - select << begin [level=1, statement=select] DEBUG [http-8080-Processor22] (FromElement.java129) - FromClause{level=1} : com.tai.domain.Activities (a) -> activities0_ ERROR [http-80any80-Processor22] (ErrorCounter.java56) - Path expected for join! DEBUG [http-8080-Processor22] (ErrorCounter.java51) - Path expected for join!

Any help is appreciated

Thanks
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post your POJOs for Activities and Favorites if they have annotations or mapping files if you are using them instead. Hibernate normally can figure out the join from what I recall, as long as the property used for the join is noted in the annotation or mapping file.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic