File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes mapping exception with websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "mapping exception with websphere" Watch "mapping exception with websphere" New topic
Author

mapping exception with websphere

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

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

Joined: Jul 20, 2005
Posts: 10067
    
163

You have not mentioned the id/composite-id in your mapping. The dtd mentions:



[My Blog] [JavaRanch Journal]
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

so in the case of there is no Id(ie. Primary key), how to go ahead?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

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
 
wood burning stoves
 
subject: mapping exception with websphere