aspose 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 Java 8 in Action this week in the Java 8 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: 9340
    
110

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: 9340
    
110

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mapping exception with websphere
 
Similar Threads
Websphere Portal problem of installing portlets
Websphere Portal problem of installing portlets
Websphere Portal Fix SHOW TOOLS Problem
h:dataTable tag using with array
where can i find container-managed authentication alias