]
Emmanuel Bernard resolved ANN-348:
----------------------------------
Resolution: Incomplete
no feedback, I think the issue comes from the fact that in hibernate @IdClass is the one
to annotate, not the entity itself.
There is a specific bug report for that
Versions: 3.2.0.cr1
Environment: Hibernate Core 3.2.CR2
Hibernate Annotations 3.2.0 CR1
Hibernate EntityManager 3.2.0 CR1
Reporter: Thomas Risberg
Attachments: ANN-348-src.zip
A @ManyToOne relation fails when using SINGLE_TABLE @Inheritance for referenced table
that also has composite primary key.
I have attached a test case.
Here is the log output and stack trace:
2006-05-26 23:44:48,901 INFO [org.hibernate.ejb.Version] - <Hibernate EntityManager
3.2.0.CR1>
2006-05-26 23:44:48,998 INFO [org.hibernate.cfg.annotations.Version] - <Hibernate
Annotations 3.2.0.CR1>
2006-05-26 23:44:49,022 INFO [org.hibernate.cfg.Environment] - <Hibernate 3.2 cr2>
2006-05-26 23:44:49,032 INFO [org.hibernate.cfg.Environment] - <hibernate.properties
not found>
2006-05-26 23:44:49,041 INFO [org.hibernate.cfg.Environment] - <Bytecode provider name
: cglib>
2006-05-26 23:44:49,065 INFO [org.hibernate.cfg.Environment] - <using JDK 1.4
java.sql.Timestamp handling>
2006-05-26 23:44:49,377 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Trying to find
persistence unit: JPATest>
2006-05-26 23:44:49,378 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Analyse of
persistence.xml:
file:/Users/trisberg/Projects/JPATest2/classes/META-INF/persistence.xml>
2006-05-26 23:44:49,568 DEBUG [org.hibernate.util.DTDEntityResolver] - <trying to
resolve system-id [
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]>
2006-05-26 23:44:49,570 DEBUG [org.hibernate.cfg.EJB3DTDEntityResolver] - <recognized
EJB3 ORM namespace; attempting to resolve on classpath under org/hibernate/ejb>
2006-05-26 23:44:49,619 DEBUG [org.hibernate.cfg.EJB3DTDEntityResolver] - <located
[
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd] in classpath>
2006-05-26 23:44:49,773 DEBUG [org.hibernate.ejb.packaging.PersistenceXmlLoader] -
<Persistent Unit name from persistence.xml: JPATest>
2006-05-26 23:44:49,782 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Detect class:
true; detect hbm: true>
2006-05-26 23:44:49,795 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Archive to be
processed by hibernate Entity Manager implementation found>
2006-05-26 23:44:49,805 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Searching
mapped entities in jar/par: file:/Users/trisberg/Projects/JPATest2/classes>
2006-05-26 23:44:49,806 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Persistence
unit name: JPATest>
2006-05-26 23:44:49,807 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <emname:JPATest
metadata: JPATest>
2006-05-26 23:44:49,808 FATAL [org.hibernate.ejb.Ejb3Configuration] -
<commons-logging.propertiesO-:-Ofalse>
2006-05-26 23:44:49,809 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.Item>
2006-05-26 23:44:50,053 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.Item>
2006-05-26 23:44:50,057 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.ItemStatus>
2006-05-26 23:44:50,069 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.ItemStatus>
2006-05-26 23:44:50,070 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.ItemStatusPK>
2006-05-26 23:44:50,072 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.NonTaxableOrderLine>
2006-05-26 23:44:50,073 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.NonTaxableOrderLine>
2006-05-26 23:44:50,074 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.Order>
2006-05-26 23:44:50,077 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.Order>
2006-05-26 23:44:50,078 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.OrderLine>
2006-05-26 23:44:50,082 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.OrderLine>
2006-05-26 23:44:50,083 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.OrderLinePK>
2006-05-26 23:44:50,085 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
jpatest.TaxableOrderLine>
2006-05-26 23:44:50,088 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element
filter matched for jpatest.TaxableOrderLine>
2006-05-26 23:44:50,089 FATAL [org.hibernate.ejb.Ejb3Configuration] -
<log4j.propertiesO-:-Ofalse>
2006-05-26 23:44:50,093 FATAL [org.hibernate.ejb.Ejb3Configuration] -
<META-INF/persistence.xmlO-:-Ofalse>
2006-05-26 23:44:50,094 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering:
Test>
2006-05-26 23:44:50,098 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Creating
Factory: JPATest>
2006-05-26 23:44:50,246 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Execute
first pass mapping processing>
2006-05-26 23:44:50,606 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Process
hbm files>
2006-05-26 23:44:50,608 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Process
annotated classes>
2006-05-26 23:44:50,619 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.Order>
2006-05-26 23:44:50,674 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE
unique false>
2006-05-26 23:44:50,703 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=Order>
2006-05-26 23:44:50,720 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind
entity jpatest.Order on table ORDERS>
2006-05-26 23:44:50,757 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.Order property annotation>
2006-05-26 23:44:50,802 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.Order field annotation>
2006-05-26 23:44:50,917 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.Order.orderId>
2006-05-26 23:44:50,932 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId
unique false>
2006-05-26 23:44:50,933 DEBUG [org.hibernate.cfg.AnnotationBinder] - <orderId is an
id>
2006-05-26 23:44:50,938 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for orderId>
2006-05-26 23:44:50,952 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderId>
2006-05-26 23:44:50,999 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderId with null>
2006-05-26 23:44:50,999 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Bind @Id on
orderId>
2006-05-26 23:44:51,000 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.Order.ordeDate>
2006-05-26 23:44:51,000 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
ordeDate unique false>
2006-05-26 23:44:51,001 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property ordeDate with lazy=false>
2006-05-26 23:44:51,003 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for ordeDate>
2006-05-26 23:44:51,004 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property ordeDate>
2006-05-26 23:44:51,004 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading ordeDate with null>
2006-05-26 23:44:51,005 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.Order.orderLines>
2006-05-26 23:44:51,008 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,009 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
orderLines unique false>
2006-05-26 23:44:51,013 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,049 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column element
unique false>
2006-05-26 23:44:51,051 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column key
unique false>
2006-05-26 23:44:51,052 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,063 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,064 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,068 DEBUG [org.hibernate.cfg.annotations.CollectionBinder] -
<Collection role: jpatest.Order.orderLines>
2006-05-26 23:44:51,077 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderLines>
2006-05-26 23:44:51,078 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderLines with none>
2006-05-26 23:44:51,082 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.OrderLine>
2006-05-26 23:44:51,083 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
linetype unique false>
2006-05-26 23:44:51,084 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=OrderLine>
2006-05-26 23:44:51,084 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind
entity jpatest.OrderLine on table OrderLine>
2006-05-26 23:44:51,085 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Setting
discriminator for entity jpatest.OrderLine>
2006-05-26 23:44:51,380 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.OrderLine property annotation>
2006-05-26 23:44:51,383 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.OrderLine field annotation>
2006-05-26 23:44:51,409 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding
component with path: jpatest.OrderLine.id>
2006-05-26 23:44:51,413 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.OrderLinePK field annotation>
2006-05-26 23:44:51,415 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLinePK.orderId>
2006-05-26 23:44:51,416 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId
unique false>
2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property orderId with lazy=false>
2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for orderId>
2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderId>
2006-05-26 23:44:51,418 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderId with null>
2006-05-26 23:44:51,418 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLinePK.lineNo>
2006-05-26 23:44:51,419 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo
unique false>
2006-05-26 23:44:51,419 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property lineNo with lazy=false>
2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for lineNo>
2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property lineNo>
2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading lineNo with null>
2006-05-26 23:44:51,421 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding
component with path: jpatest.OrderLine._identifierMapper>
2006-05-26 23:44:51,421 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.OrderLine field annotation>
2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLine.orderId>
2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId
unique false>
2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property orderId with lazy=false>
2006-05-26 23:44:51,423 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for orderId>
2006-05-26 23:44:51,428 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderId>
2006-05-26 23:44:51,428 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderId with null>
2006-05-26 23:44:51,429 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLine.lineNo>
2006-05-26 23:44:51,430 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo
unique false>
2006-05-26 23:44:51,431 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property lineNo with lazy=false>
2006-05-26 23:44:51,431 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for lineNo>
2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property lineNo>
2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading lineNo with null>
2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLine.order>
2006-05-26 23:44:51,433 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ORDERID
unique false>
2006-05-26 23:44:51,433 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column order
unique false>
2006-05-26 23:44:51,444 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property order>
2006-05-26 23:44:51,445 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading order with none>
2006-05-26 23:44:51,446 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.OrderLine.itemStati>
2006-05-26 23:44:51,446 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,449 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
itemStati unique false>
2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column element
unique false>
2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column key
unique false>
2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null
unique false>
2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.CollectionBinder] -
<Collection role: jpatest.OrderLine.itemStati>
2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property itemStati>
2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading itemStati with none>
2006-05-26 23:44:51,453 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.TaxableOrderLine>
2006-05-26 23:44:51,455 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=TaxableOrderLine>
2006-05-26 23:44:51,492 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.TaxableOrderLine field annotation>
2006-05-26 23:44:51,498 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.TaxableOrderLine.rate>
2006-05-26 23:44:51,499 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column rate
unique false>
2006-05-26 23:44:51,499 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property rate with lazy=false>
2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for rate>
2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property rate>
2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading rate with null>
2006-05-26 23:44:51,501 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.NonTaxableOrderLine>
2006-05-26 23:44:51,501 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=NonTaxableOrderLine>
2006-05-26 23:44:51,502 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.NonTaxableOrderLine field annotation>
2006-05-26 23:44:51,503 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.Item>
2006-05-26 23:44:51,503 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE
unique false>
2006-05-26 23:44:51,506 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=Item>
2006-05-26 23:44:51,507 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind
entity jpatest.Item on table Item>
2006-05-26 23:44:51,507 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.Item property annotation>
2006-05-26 23:44:51,508 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.Item field annotation>
2006-05-26 23:44:51,512 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.Item.itemId>
2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column itemId
unique false>
2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.AnnotationBinder] - <itemId is an
id>
2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for itemId>
2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property itemId>
2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading itemId with null>
2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Bind @Id on
itemId>
2006-05-26 23:44:51,515 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.Item.desccription>
2006-05-26 23:44:51,515 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
desccription unique false>
2006-05-26 23:44:51,516 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property desccription with lazy=false>
2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for desccription>
2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property desccription>
2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading desccription with null>
2006-05-26 23:44:51,518 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity
from annotated class: jpatest.ItemStatus>
2006-05-26 23:44:51,522 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE
unique false>
2006-05-26 23:44:51,525 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import
with entity name=ItemStatus>
2006-05-26 23:44:51,526 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind
entity jpatest.ItemStatus on table ItemStatus>
2006-05-26 23:44:51,527 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.ItemStatus property annotation>
2006-05-26 23:44:51,528 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.ItemStatus field annotation>
2006-05-26 23:44:51,544 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding
component with path: jpatest.ItemStatus.id>
2006-05-26 23:44:51,545 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.ItemStatusPK field annotation>
2006-05-26 23:44:51,546 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatusPK.orderId>
2006-05-26 23:44:51,547 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId
unique false>
2006-05-26 23:44:51,547 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property orderId with lazy=false>
2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for orderId>
2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderId>
2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderId with null>
2006-05-26 23:44:51,550 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatusPK.lineNo>
2006-05-26 23:44:51,550 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo
unique false>
2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property lineNo with lazy=false>
2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for lineNo>
2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property lineNo>
2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading lineNo with null>
2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatusPK.statusTime>
2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
statusTime unique false>
2006-05-26 23:44:51,553 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property statusTime with lazy=false>
2006-05-26 23:44:51,553 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for statusTime>
2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property statusTime>
2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading statusTime with null>
2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding
component with path: jpatest.ItemStatus._identifierMapper>
2006-05-26 23:44:51,555 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
jpatest.ItemStatus field annotation>
2006-05-26 23:44:51,557 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.orderId>
2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId
unique false>
2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property orderId with lazy=false>
2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for orderId>
2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderId>
2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderId with null>
2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.lineNo>
2006-05-26 23:44:51,560 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo
unique false>
2006-05-26 23:44:51,570 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property lineNo with lazy=false>
2006-05-26 23:44:51,570 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for lineNo>
2006-05-26 23:44:51,571 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property lineNo>
2006-05-26 23:44:51,571 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading lineNo with null>
2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.statusTime>
2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
statusTime unique false>
2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property statusTime with lazy=false>
2006-05-26 23:44:51,573 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for statusTime>
2006-05-26 23:44:51,573 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property statusTime>
2006-05-26 23:44:51,574 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading statusTime with null>
2006-05-26 23:44:51,574 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.orderLine>
2006-05-26 23:44:51,575 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ORDERID
unique false>
2006-05-26 23:44:51,577 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column LINENO
unique false>
2006-05-26 23:44:51,578 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
orderLine unique false>
2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property orderLine>
2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading orderLine with none>
2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.item>
2006-05-26 23:44:51,580 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ITEMID
unique false>
2006-05-26 23:44:51,581 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column item
unique false>
2006-05-26 23:44:51,670 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property item>
2006-05-26 23:44:51,671 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading item with none>
2006-05-26 23:44:51,671 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing
annotations of jpatest.ItemStatus.quantity>
2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column
quantity unique false>
2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<binding property quantity with lazy=false>
2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] -
<building SimpleValue for quantity>
2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Building property quantity>
2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] -
<Cascading quantity with null>
2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.AnnotationConfiguration] -
<processing manytoone fk mappings>
Exception in thread "main" javax.persistence.PersistenceException:
org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in
JoinColumns.referencedColumnName
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:217)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
at Test.main(Test.java:17)
Caused by: org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine
not found in JoinColumns.referencedColumnName
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:297)
at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:45)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:288)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015)
at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751)
at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
at
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
... 3 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: