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
|