Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composite Id --- Error in Reading the mapping file

 
vinoth subramaniam
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, here is the situation...
i have a table called RELATN in the Database. Which have the following Structure.

+----------------+--------------+------+-----+---------+-------+ Field | Type | Null | Key | Default | Extra || +----------------+--------------+------+-----+---------+-------+ CLNO | int | | PRI | | || PLANNO | char | | PRI | | || RELATION | tinyint | | PRI | | || BENFCPC | money | | | | || DEEDTYPE | int | | PRI | | || RelationSeqNo | int | | PRI | | ||
--- | --- | --- | | | ||
-other columns-
---------------+--------------+------+-----+---------+-------+

My RELATN.hmb.xml file



And My POJOs

RELATN.java



And RELATN_PK.java



I dont know what is causing the error. I am not using this RELATN anywhere in my application. i am getting the Follownig errror...

org.hibernate.MappingException: Error reading resource: com/tcs/Nulamda/hibernate/RELATN.hbm.xml

Can you please help me out..!

Cheers
 
vinoth subramaniam
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to create the tagle structire... sorry to all. I messed up...
Here is the Details of my table...

Sl.No Column Type Null KeyType

1CLNO -------------- int NO P
2PLANNO------------- char NO P
3RELATION ------------ tinyint NO P
4BENFCPC money NO
5DEEDTYPE ------------ int NO P
6LASTUPD varchar YES
7RelationSeqNo ------- int NO P
8CreatorId char YES
9CreatorTypeCode tinyint NO
10CreatedDate datetime YES
11PseudoBeneficiaryId smallint NO
12AssigneeInterestPct money NO
13NomineeInterestPct money NO
14RelatnStat tinyint NO
15RoleIndicator tinyint NO
16BenefitIndicator tinyint NO

it has one composite key consists of CLNO, RELATION, PLANNO, DEEDTYPE, and RelationSeqNo.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic