Re: Strange behaviour on ManyToMany relationship using RCP client

2011-11-14 Thread M. Walter
Hi Rick, sorry I wasn't right. The two entities are NOT being created at the client side but they are read from the server via RMI. Then the add() method of one of them is called in order to create a new ManyToMany relationship between these two entities. The add() method then calls the other

Re: Strange behaviour on ManyToMany relationship using RCP client

2011-11-14 Thread Rick Curtis
Walter - Thanks for the additional debug info I assumed that you were using a DetachedStateManager, but I wanted to have you confirm for me. The problem is that you are accessing an unloaded field while this Entity is detached. I agree with you that we shouldn't be throwing an NPE... but if

Defining Where clause on OneToMany Association, Why is there no @Where Annotation ?

2011-11-14 Thread seba.wag...@gmail.com
Hi, could somebody point me to the right direction on this: I have two Entities: @Entity @Table(name = naviglobal) public class *Naviglobal* implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) **@Column(name=global_id) private Long global_id;*