You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 21 Members of 4546 |
| Forum: Seam Users |
29. Jul 2008, 15:24 CET | Link |
Hi all, I'm having a slight problem with getting my changes to commit to the database. What I have is a Person object, an Organization object, and PersonOrganization, which is the association between them. Person represents the user and Organization represents an organization, which won't change when the user updates their information. PersonOrganization is supposed to change when the user updates because all that's happening is the user is changing which organization they are in. For some reason, when a user changes what organization they are in, the changes are not reflected in the database. I know that I can change things just fine, because I can do everything else just fine, like creating a user and creating an organization. I'm not sure if there is something special that I have to do in this case because only one side of the association is changing.
I'm using Hibernate 3.2.4.sp1 and Seam 2.0.2.SP1.
Thanks in advance.
Robert
Seems a problem more related to your data binding with Hibernate. You should see therek for Hibernate annotation documentation to put the right annotation to your Entities, or ask on their forums.
What database are you using?
Cheers,
Damian.
I'm using postgres, but I found out that all I needed to do was make an update statement for the association table. I know its a bit of a hack, but it works. Thank you though.