-->
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: many-to-one throwing an error - Help me comprehend
PostPosted: Tue Dec 27, 2005 5:53 pm 
Beginner
Beginner

Joined: Wed Dec 14, 2005 10:32 am
Posts: 20
I have the snippet of the mapping below:

<many-to-one name ="account"
column="SA_ACCOUNT_NUM"
/>

The 'account' field mentioned above refers to a class 'com.example.Account'.

To my understanding hibernate should be able to resolve the type of 'account' property and I end up getting the error below.

snippet of the error:

2005-12-27 16:46:05] INFO - 734 - org.hibernate.cfg.Configuration - processing foreign key constraints
[2005-12-27 16:46:05] DEBUG - 734 - org.hibernate.cfg.Configuration - resolving reference to class: com.example.Account


CAn anybody tell me what this error means??

I really really appreciate your help.... I have been trying all kinds of things to overcome this.

Thanks in Advance.

-Ram


Top
 Profile  
 
 Post subject: no error
PostPosted: Tue Dec 27, 2005 6:59 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I see no error in the message, it is simply debug information, you may need to increase logging threshold if you do not want to see messages from DEBUG level.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 27, 2005 7:04 pm 
Beginner
Beginner

Joined: Wed Dec 14, 2005 10:32 am
Posts: 20
Sorry for the Incomplete infomation:

I am getting a null pointer exception right after this:


2005-12-27 16:46:05] INFO - 734 - org.hibernate.cfg.Configuration - processing foreign key constraints
[2005-12-27 16:46:05] DEBUG - 734 - org.hibernate.cfg.Configuration - resolving reference to class: com.example.Account

Thanks for your help.

-Ram


Top
 Profile  
 
 Post subject: and
PostPosted: Tue Dec 27, 2005 7:19 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Do you have mapping for that class:com.example.Account ?

It makes much easier to help if you would follow the suggested template for posting H problems and provide your mapping documents, classes code etc.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.