Register / Login
Win a copy of
Java Mock Exams (software)
this week in the
Programmer Certification (OCPJP)
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
posted 8 years ago
I am trying to map Account object to Transaction object.
I have a ReferenceId (type:long) field in Transaction which
hold the AccountId
The accountid is the primary key for Account and is of type long.
The mapping for Account is
<one-to-one name="Transaction" class="a.b.Transaction" cascade="save-update" fetch="select" property-ref="ReferenceId" />
When the account object is saved the ReferenceId is always set as 0.
can any one help me figure out why?
Any help or comments would he highly appreciated.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
Ajax Request - Call different method on Spring controller
Hibernate. Nested transactions. Lock
how to create a form within form?
how to take input from user in parts?
Hibernate - Reverse Engineer - Oracle