-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Mapping big tables
PostPosted: Wed Oct 06, 2004 10:13 am 
Newbie

Joined: Fri Sep 17, 2004 1:05 pm
Posts: 10
Hibernate version:
hibernate 2
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >

<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.1

http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->

<class
name="test.hibernate.T359"
table="T359"
>
<meta attribute="implements" inherit="false">net.sf.hibernate.Validatable</meta>
<meta attribute="implement-equals" inherit="false">true</meta>
<meta attribute="implements" inherit="false">java.io.Serializable</meta>

<composite-id>
<key-property
name="c1"
column="C1"
type="java.lang.String"
length="15"
/>
<key-property
name="c2"
column="C2"
type="java.lang.String"
length="30"
/>
<key-property
name="c3"
column="C3"
type="long"
length="15"
/>
<key-property
name="c4"
column="C4"
type="java.lang.String"
length="30"
/>
<key-property
name="c5"
column="C5"
type="java.lang.String"
length="30"
/>
<key-property
name="c6"
column="C6"
type="long"
length="15"
/>
<key-property
name="c7"
column="C7"
type="long"
length="15"
/>
<key-property
name="c8"
column="C8"
type="java.lang.String"
length="128"
/>
<key-property
name="c200000003"
column="C200000003"
type="java.lang.String"
length="50"
/>
<key-property
name="c200000004"
column="C200000004"
type="java.lang.String"
length="50"
/>
<key-property
name="c200000005"
column="C200000005"
type="java.lang.String"
length="50"
/>
<key-property
name="c200000006"
column="C200000006"
type="java.lang.String"
length="30"
/>
<key-property
name="c200000007"
column="C200000007"
type="java.lang.String"
length="30"
/>
<key-property
name="c200000012"
column="C200000012"
type="java.lang.String"
length="30"
/>
<key-property
name="c230000009"
column="C230000009"
type="java.lang.String"
length="30"
/>
<key-property
name="c230000010"
column="C230000010"
type="java.lang.Object"
length="4000"
/>
<key-property
name="c240000000"
column="C240000000"
type="java.lang.String"
length="30"
/>
<key-property
name="c240000001"
column="C240000001"
type="java.lang.String"
length="128"
/>
<key-property
name="c240000002"
column="C240000002"
type="java.lang.String"
length="30"
/>
<key-property
name="c240000003"
column="C240000003"
type="java.lang.String"
length="70"
/>
<key-property
name="c240000004"
column="C240000004"
type="java.lang.String"
length="30"
/>
<key-property
name="c240000005"
column="C240000005"
type="java.lang.String"
length="30"
/>
<key-property
name="c240000006"
column="C240000006"
type="java.lang.String"
length="128"
/>
<key-property
name="c240000007"
column="C240000007"
type="java.lang.Object"
length="4000"
/>
<key-property
name="c240000008"
column="C240000008"
type="java.lang.Object"
length="4000"
/>
<key-property
name="c240000009"
column="C240000009"
type="java.lang.Long"
length="15"
/>
<key-property
name="c240000010"
column="C240000010"
type="java.lang.Long"
length="15"
/>
<key-property
name="c240000011"
column="C240000011"
type="java.lang.Long"
length="15"
/>
<key-property
name="c240000012"
column="C240000012"
type="java.lang.Object"
length="4000"
/>
<key-property
name="c240000015"
column="C240000015"
type="java.lang.String"
length="128"
/>
<key-property
name="c240000016"
column="C240000016"
type="java.lang.String"
length="128"
/>
<key-property
name="c240000017"
column="C240000017"
type="java.lang.Long"
length="15"
/>
<key-property
name="c240000042"
column="C240000042"
type="java.lang.String"
length="255"
/>
<key-property
name="c240000111"
column="C240000111"
type="java.lang.String"
length="50"
/>
<key-property
name="c250000005"
column="C250000005"
type="java.lang.String"
length="255"
/>
<key-property
name="c250000007"
column="C250000007"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000010"
column="C250000010"
type="java.lang.String"
length="12"
/>
<key-property
name="c250000011"
column="C250000011"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000012"
column="C250000012"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250000013"
column="C250000013"
type="java.lang.String"
length="30"
/>
<key-property
name="c250000014"
column="C250000014"
type="java.lang.String"
length="128"
/>
<key-property
name="c250000015"
column="C250000015"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000016"
column="C250000016"
type="java.lang.String"
length="30"
/>
<key-property
name="c250000017"
column="C250000017"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000018"
column="C250000018"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000021"
column="C250000021"
type="java.lang.String"
length="70"
/>
<key-property
name="c250000022"
column="C250000022"
type="java.lang.String"
length="30"
/>
<key-property
name="c250000023"
column="C250000023"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250000030"
column="C250000030"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250000031"
column="C250000031"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250000032"
column="C250000032"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250000043"
column="C250000043"
type="java.lang.String"
length="25"
/>
<key-property
name="c250000050"
column="C250000050"
type="java.lang.Long"
length="15"
/>
<key-property
name="c250100022"
column="C250100022"
type="java.lang.String"
length="255"
/>
<key-property
name="c260000000"
column="C260000000"
type="java.lang.String"
length="30"
/>
<key-property
name="c260000004"
column="C260000004"
type="java.lang.Object"
length="126"
/>
<key-property
name="c260000005"
column="C260000005"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000006"
column="C260000006"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000100"
column="C260000100"
type="java.lang.String"
length="128"
/>
<key-property
name="c260000101"
column="C260000101"
type="java.lang.String"
length="50"
/>
<key-property
name="c260000104"
column="C260000104"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000105"
column="C260000105"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000123"
column="C260000123"
type="java.lang.String"
length="120"
/>
<key-property
name="c260000126"
column="C260000126"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000127"
column="C260000127"
type="java.lang.String"
length="15"
/>
<key-property
name="c260000128"
column="C260000128"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000129"
column="C260000129"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000130"
column="C260000130"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000131"
column="C260000131"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000132"
column="C260000132"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000133"
column="C260000133"
type="java.lang.String"
length="12"
/>
<key-property
name="c260000500"
column="C260000500"
type="java.lang.String"
length="255"
/>
<key-property
name="c260000501"
column="C260000501"
type="java.lang.String"
length="255"
/>
<key-property
name="c260000502"
column="C260000502"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260000503"
column="C260000503"
type="java.lang.String"
length="300"
/>
<key-property
name="c260000504"
column="C260000504"
type="java.lang.Long"
length="15"
/>
<key-property
name="c260100001"
column="C260100001"
type="java.lang.String"
length="30"
/>
<key-property
name="c269000001"
column="C269000001"
type="java.lang.String"
length="30"
/>
<key-property
name="c310000000"
column="C310000000"
type="java.lang.String"
length="15"
/>
<key-property
name="c310000016"
column="C310000016"
type="java.lang.String"
length="30"
/>
<key-property
name="c310000017"
column="C310000017"
type="java.lang.String"
length="30"
/>
<key-property
name="c310000018"
column="C310000018"
type="java.lang.String"
length="30"
/>
<key-property
name="c536870922"
column="C536870922"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870923"
column="C536870923"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870924"
column="C536870924"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870925"
column="C536870925"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870932"
column="C536870932"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870977"
column="C536870977"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870978"
column="C536870978"
type="java.lang.String"
length="50"
/>
<key-property
name="c536870979"
column="C536870979"
type="java.lang.String"
length="50"
/>
<key-property
name="c536870981"
column="C536870981"
type="java.lang.String"
length="50"
/>
<key-property
name="c536870982"
column="C536870982"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536870988"
column="C536870988"
type="java.lang.String"
length="15"
/>
<key-property
name="c536870997"
column="C536870997"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871006"
column="C536871006"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871010"
column="C536871010"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871012"
column="C536871012"
type="java.lang.String"
length="500"
/>
<key-property
name="c536871013"
column="C536871013"
type="java.lang.String"
length="500"
/>
<key-property
name="c536871024"
column="C536871024"
type="java.lang.String"
length="128"
/>
<key-property
name="c536871025"
column="C536871025"
type="java.lang.String"
length="150"
/>
<key-property
name="c536871032"
column="C536871032"
type="java.lang.String"
length="255"
/>
<key-property
name="c536871033"
column="C536871033"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871059"
column="C536871059"
type="java.lang.String"
length="69"
/>
<key-property
name="c536871071"
column="C536871071"
type="java.lang.String"
length="20"
/>
<key-property
name="c536871072"
column="C536871072"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871084"
column="C536871084"
type="java.lang.String"
length="35"
/>
<key-property
name="c536871097"
column="C536871097"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871100"
column="C536871100"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871104"
column="C536871104"
type="java.lang.String"
length="30"
/>
<key-property
name="c536871105"
column="C536871105"
type="java.lang.String"
length="30"
/>
<key-property
name="c536871106"
column="C536871106"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871115"
column="C536871115"
type="java.lang.String"
length="35"
/>
<key-property
name="c536871125"
column="C536871125"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871126"
column="C536871126"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871140"
column="C536871140"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871143"
column="C536871143"
type="java.lang.String"
length="255"
/>
<key-property
name="c536871144"
column="C536871144"
type="java.lang.String"
length="50"
/>
<key-property
name="c536871145"
column="C536871145"
type="java.lang.Object"
length="4000"
/>
<key-property
name="c536871146"
column="C536871146"
type="java.lang.String"
length="35"
/>
<key-property
name="c536871147"
column="C536871147"
type="java.lang.String"
length="100"
/>
<key-property
name="c536871149"
column="C536871149"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871150"
column="C536871150"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871154"
column="C536871154"
type="java.lang.String"
length="50"
/>
<key-property
name="c536871155"
column="C536871155"
type="java.lang.String"
length="15"
/>
<key-property
name="c536871157"
column="C536871157"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871167"
column="C536871167"
type="java.lang.String"
length="128"
/>
<key-property
name="c536871172"
column="C536871172"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871181"
column="C536871181"
type="java.lang.String"
length="150"
/>
<key-property
name="c536871182"
column="C536871182"
type="java.lang.Long"
length="15"
/>
<key-property
name="c536871183"
column="C536871183"
type="java.lang.String"
length="30"
/>
<key-property
name="c536871184"
column="C536871184"
type="java.lang.String"
length="500"
/>
<key-property
name="c536871188"
column="C536871188"
type="java.lang.String"
length="50"
/>
<key-property
name="c536871189"
column="C536871189"
type="java.lang.String"
length="50"
/>
<key-property
name="c536871190"
column="C536871190"
type="java.lang.String"
length="50"
/>
<key-property
name="c536871198"
column="C536871198"
type="java.lang.String"
length="255"
/>
<key-property
name="c536871219"
column="C536871219"
type="java.lang.String"
length="150"
/>
</composite-id>


<!-- Associations -->
<!-- derived association(s) for compound key -->
<!-- end of derived association(s) -->


</class>
</hibernate-mapping>

I have a problem when try to map a big database table, I'm using generated mapping files with middlegen and hibernate tools

What is the problem? perhaps hibernate doesn't support work with big database tables?
help me please.

15:49:07,520 INFO [STDOUT] net.sf.hibernate.MappingException: identifier mapping has wrong number of columns

Name and version of the database you are using:
Oracle 9i


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
woaw, you're in the guiness bookf of the ugliest and longest composite key in the world ;-)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 07, 2004 5:26 am 
Newbie

Joined: Fri Sep 17, 2004 1:05 pm
Posts: 10
Well the problem was fixed, hibernate work very well, but I can't say the same about my brain ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 09, 2004 12:27 pm 
Beginner
Beginner

Joined: Tue Nov 09, 2004 12:22 pm
Posts: 44
Could you tell me how you did solve the problem ?

I have a table with 20 properties and also the same exception message : "property mapping has wrong number of columns".


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.