This content has been marked as final.
Show 2 replies
-
1. Re: Lost update on seam-gen when two users update
meetoblivion Feb 16, 2009 6:01 AM (in response to philip142au.philip_andrew.hotmail.com)do the entities have an @Version on the anywhere? you probably should be using that.
-
2. Re: Lost update on seam-gen when two users update
philip142au.philip_andrew.hotmail.com Feb 17, 2009 6:37 AM (in response to philip142au.philip_andrew.hotmail.com)Ok thanks, since I use seam-gen to generate the JPA from the mysql database, all I had to do is add a version INT column to my tables.
The hibernate reverse engineer then automatically added @Version.Although I am not happy that this sort of thing is so ... undeclared, the names of table columns and tables is important. For example I can't have a column called content, it causes problems. Theres a few other table restrictions for their names.