Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Nise Duram

Greenhorn
+ Follow
since Jun 15, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nise Duram

Hi,

I know my question maybe a little trivial but i would really appreciate if someone can help me with a slightly clear explanation to the question above.

many thanks
Thanks Mark.

However I have some doubts there.
In the example shown.

I understand that the code for Address.java should have
getPersons()
setPersons(Person p)

will there be a getAddress and setAddress in People.java

ALS0

<set name="people" inverse="true">
<key column="addressId"/>
<one-to-many class="Person"/>
</set>

also in this code, what does this <key column="addressId"/> refer to

can you just explain a little more what exactly is this set thing...

thanks

nise
Hi,
Just to summarize. I am using Myeclipse IDE, and am building the sample application using both spring and hibernate. See this link which has the sample app.

http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/

I do everything step by step as is give here. However when i store something to the database ... it does not get stored and it seems that there is some kind of a transaction rollback. I can say this because if i store something beforehand, I get a primary key violation if i try to store throught spring hibernate. So i know my sql statement is atleast hitting the database.

Does anyone know or can send me a small snippet of code showing how can i commit a transaction with spring explicitly.

Many thanks for any help or input. This is really driving me insane.

Nise