[jboss-user] [jBPM] - hibernate mapping modification
Rodrigo Nakama
do-not-reply at jboss.com
Thu May 20 10:15:51 EDT 2010
Rodrigo Nakama [http://community.jboss.org/people/rodnak85] created the discussion
"hibernate mapping modification"
To view the discussion, visit: http://community.jboss.org/message/544056#544056
--------------------------------------------------------------
Hello,
I am running a Seam 2.1 with jboss 4.2 and jbpm 3.2.2.
I altered the hibernate mapping of the class Toto. I included one new attribute called userDev, with the following getter:
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "id_user_developer", nullable = true, insertable = false, updatable = false)
public User getUserDev() {
return userDev;
}
The data base structure was not modified, and when a Toto object is persisted, the column id_user_developer is not altered in the data base.
The server starts ok, and I can normally create, edit and delete new Toto instances, as well as perform jbpm tasks on it.
However, if I try to perform a jbpm task on Toto objects that were created before the mapping modification, the jbpm task do not succed.
I think the problem is related to the jbpm tables, that weren't updated according the mapping modification.
Anyone have any idea on how can I solve this issue for the Toto instances created before the mapping modification?
Thanks a lot.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/544056#544056]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100520/746eb78d/attachment.html
More information about the jboss-user
mailing list