-->
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.  [ 1 post ] 
Author Message
 Post subject: Annotation bug - table name problem
PostPosted: Thu Mar 29, 2007 12:06 am 
Newbie

Joined: Tue Mar 27, 2007 11:34 pm
Posts: 13
Hi all, I had write a simple apps which using the Hibernate Annotation (3.2.1 GA), please reference to the attached. http://www.sharebigfile.com/file/124964/src-zip.html


Problem:
When I run the test.Main, throw have an exception while passing the annotation:

Code:
Exception in thread "main" org.hibernate.MappingException: Unable to find column with logical name: customerID in ShoppingBasket
   at org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn.java:383)
   at org.hibernate.cfg.BinderHelper.createSyntheticPropertyReference(BinderHelper.java:88)
   at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:63)
   at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:428)
   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
   at test.Main.main(Main.java:19)


But when I change the table name of ShoppingBaskets to "Basket", then the problem solved.


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

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.