Re: Composite Primary Keys (Many-to-Many relationship)

2011-07-06 Thread Greg Naidu
Aldo Neto writes: > > > Hi, > > Thanks you all for your help. My problem was that I was mapping my Client side incorrectly - I now understand how to use the ValueProxy. In case someone else is having similar problems, I suggest reading Thomas' post: http://tbroyer.posterous.com/gwt-211-request

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-21 Thread Aldo Neto
Hi, Thanks you all for your help. My problem was that I was mapping my Client side incorrectly - I now understand how to use the ValueProxy. In case someone else is having similar problems, I suggest reading Thomas' post: http://tbroyer.posterous.com/gwt-211-requestfactory It helped me a lot. Ch

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-17 Thread Thomas Broyer
On Monday, January 17, 2011 10:33:00 PM UTC+1, David Chandler (Google) wrote: > > Hi Aldo, > > RequestFactory doesn't support composite keys, only String or Long > types. You need some vacations David! ;-) It was the case on 2.1.0 but no longer in 2.1.1, where you can have composite keys.

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-17 Thread David Chandler (Google)
Hi Aldo, RequestFactory doesn't support composite keys, only String or Long types. In order to simulate @ManyToMany, your intersection table should have a String or Long id, product, and item as fields of the entity itself rather than an embedded PK class as shown. HTH, /dmc On Jan 6, 6:23 pm, Y

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
Sorry, I misunderstood the question. You are trying emulate @ManyToMany... On Jan 6, 3:13 pm, Y2i wrote: > I don't see @ManyToMany attribute in the sample code. > > On Jan 6, 8:53 am, Aldo Neto wrote: > > > > > > > > > Hi all, > > > I'm trying to create a Many-to-Many relationship and add a c

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
I don't see @ManyToMany attribute in the sample code. On Jan 6, 8:53 am, Aldo Neto wrote: > Hi all, > > I'm trying to create a Many-to-Many relationship and add a couple of fields > to it. I based my mapping on this > post:http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-tab...

Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Aldo Neto
Hi all, I'm trying to create a Many-to-Many relationship and add a couple of fields to it. I based my mapping on this post: http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-table-with-extra-column-using-jpa/ (which was very clear and helpful). Summarizing the mapping on that blog