• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate relationl table with aditional column

 
Ahasan Habib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear experts,

I am facing problem in composite-element mapping of hibernate. My expected relation is many to many in document and task. That is a task may have multiple documents and a document may have assigned to multiple task. Relational table will contain both foregin key with additional column. In attachment I have given the tables structures.

My Task hbm file:


My document hbm file:


I have created all mapping files. My question what will be the java code for inserting in TM_TASK table as well as for TM_TASKDOCS table. And what will be the TaskDocsInfo class exactly. where I have to create the composite class instance and have to assign this instance? I have tried with the following code but fails



Please help.

Thanks in advance
M2M.JPG
[Thumbnail for M2M.JPG]
Table Structure
 
Ahasan Habib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reply anyone
 
Ahasan Habib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one here to help
 
Randeep Singh Arora
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
send me your code and contact me at skype rsingh008.I may be able to help you out...
 
Ahasan Habib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mr. Randeep Singh,

I have added you on skype (my id: sumon.dsl) but can not get you online. Please help.

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic