Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mapping exception with websphere

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am facing mapping problem while using websphere portal5.1, with RAD.
I don't see anything wrong in my mapping file but still it doesn't work. Any input highly appreciated. I am using hibernate synchronizer to creating configuration and mapping files.

Here is my cfg.xml file
---------------------------------------------------------------

---------------------------------------------------------------


Here is my hbm.xml file
---------------------------------------------------------------------

---------------------------------------------------------------------
Here is my stack trace:
-----------------------------------------------------------------------

------------------------------------------------------------------------
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have not mentioned the id/composite-id in your mapping. The dtd mentions:

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so in the case of there is no Id(ie. Primary key), how to go ahead?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so in the case of there is no Id(ie. Primary key), how to go ahead?


This has been discussed earlier in these threads:

Is Primary Key necessary

No Primary Key in Database
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic