-->
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: Null pointer E while loading Object having OnetoMany Relatio
PostPosted: Fri Jul 21, 2006 5:05 pm 
Newbie

Joined: Fri Jul 15, 2005 4:57 am
Posts: 1
Hi,

I am getting NullpointerException while creating getProxyFactory(..) when trying to load the Object using Session.get( A.class, aId) under user Transaction I have created in my java main() program;

same thing works when I deploy on the webloigc application server and use under ejb transaction.

here A has Many-To-One relationship with Class B, and in the query I see it is trying to load class B.
<hibernate-mapping..>
<class name="A" ...>
<many-to-one
name="B"
class="B"
cascade="none"
outer-join="true"
update="true"
insert="true"
access="property"
column="B_ID"
/>
<hibernate-mapping>

is it anything I am missing while running from main program?. thanks in advance.

thanks,
bhadru


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.