Hans Lesmeister

Greenhorn
+ Follow
since Feb 29, 2008
Merit badge: grant badges
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 Hans Lesmeister

Mea Culpa, the problem is solved. There was nothing wrong with the mapping and the Hibernate-Setup. There was something wrong with the Testcase. The Testcase did set new values in an existing record, but unfortunately those values where the same as the old values, so nothing really changed and therefore Hibernate did not execute an update. Quite stupid, please take my apolologize for any inconvenience

Regards
Hans
[ March 03, 2008: Message edited by: Hans Lesmeister ]
Hello,
I have an entity "Stock" with a composite key. Reading from the underlying table works perfectly. But if I try to update a property then no update-SQL is executed. Could somebody please take look if I do something wrong in my mapping file?

Mapping file:


Stock.java:


As I said, selecting data is okay, but updating does not work. Somehow Hibernate does not notice a change in the Pojo and no update-SQL is generated:


Thanks for any help
Regards, Hans