On Tue, Mar 11, 2008 at 3:37 AM, Julian Wood <[EMAIL PROTECTED]> wrote:
> Hate to answer my own question, but I think the proper relation for:
>
> is:
>
> @ManyToMany( cascade={CascadeType.PERSIST, CascadeType.MERGE} )
>
> You then need to persist your GrantedAuthorityBean independently from
>
Hate to answer my own question, but I think the proper relation for:
@OneToMany
@Cascade(CascadeType.ALL)
public Collection getGrantedAuthorities() {
return grantedAuthorities;
}
is:
@ManyToMany( cascade={CascadeType.PERSIST, CascadeType.MERGE} )
You then need to persist your GrantedA