• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Struts2 hibernate one-to-one Mapping

 
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 am using struts2 and on2-to-one hibernate mapping
In parent class



child class


In Daoimple i was retirve both child and parent class values



I am able to retrieve the data only when the child table has data. Is there a way we could retrive data even if there is no data in child table for that particular id.

i am unable to save the data too.


in my action class





can anyone please help. please point me to any example ifpossible.

Thanks
 
Vallaru smitha
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
this is how I am tyring to display in jsp

<s:iterator value="activityList" status="activityStatus">
......
<s:iterator value="favorites">
<td class="viewCell"><s:checkbox id="accFavorities" name="accFavorities" /></td>
</s:iterator>
</s:iterator>


it should display an empty check box if the values are not in favorites table.

when we click submit here then it goes and inserts in to favorites table.

Anybody please advice, I am kind of struck.

Thanks
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic