Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 CreateQurey

 
Vallaru smitha
Ranch Hand
Posts: 87
Firefox Browser Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
Michael Freake
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic