-
-
2. Re: Scope Conversation problem
lvdberg Sep 29, 2010 8:12 AM (in response to nefadbr)Hi,
I would like to give it a try, but I really need some code/pages, because only with the above explanation I can't do anything.
Leo
-
3. Re: Scope Conversation problem
nefadbr Oct 1, 2010 2:35 PM (in response to nefadbr)Ok, i've done more tests, and i got this conclusions:
I am using @Begin to use a conversation between beans, and when I put, I can not save my data. The error is this:
A collection with cascade 'all-delete-orphan' was no longer referenced by the owning entity instance
The interesting thing is that just gives this error the first time you try to save, then it works normally ...
And when I take the note, it works normally.
I put a button on the page pointing to a method ending the conversation (@End) and when I save it worked.
Does anyone know what might be causing this?
The atribute that causing this error:
@OneToMany(mappedBy = "dog", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@Cascade(value = {org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@JoinColumn(name="DOG", nullable=true)
private List<Dog> dogList = new ArrayList<Dog>()Im using
@Begin( join = true )
on my method to initiate the conversation.
Remember that couse error only in first time Oo