ManyToMany Relation returns transient objects

2024-05-06 Thread Markus Reich
Hi, I'm on the latest release 4.2 of Cayenne and run in a problem when creating a many to many relationship. I had table A und table B and a joining table C which contain the ID columns of A and B The relation is defined as many to many and Dep PK is marked for A and B, further the cascading of d

Re: ManyToMany Relation returns transient objects

2024-05-06 Thread Nikita Timofeev
Hi Markus, Maybe you could provide some simple test case for your problem or at least a mapping example? For me this seems like a regular Many-To-Many relationship that should just work. On Mon, May 6, 2024 at 12:46 PM Markus Reich wrote: > Hi, > > I'm on the latest release 4.2 of Cayenne and r

Re: ManyToMany Relation returns transient objects

2024-05-06 Thread Markus Reich
yes it was very strange, as I had to build it back, I have to build an example from scratch which I will provide as soon as possible! Another thing was that sometimes the relation returns duplicate transient objects with exactly the same id (in java debugger) when switched from List to Set I got