Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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

3 Replies:
29. Jul 2008, 17:23 CET | Link

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.

29. Jul 2008, 17:31 CET | Link

What database are you using?

Cheers,

Damian.

29. Jul 2008, 18:49 CET | Link

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.