Thank you all for the help...im having a good grip already with
Cayenne..just confusing at first..
Best Regards
jun
On 1/23/07, Malcolm Edgar <[EMAIL PROTECTED]> wrote:
Hi All,
I think Jun has sorted out this issue. I believe he was doing
something strange in a service/dao class which resulte
Hi All,
I think Jun has sorted out this issue. I believe he was doing
something strange in a service/dao class which resulted in inserts new
objects with the same PK as an existing object.
regards Malcolm Edgar
On 1/23/07, Michael Gentry <[EMAIL PROTECTED]> wrote:
I'm not at all familiar with
I'm not at all familiar with Click or the CayenneForm class it
provides. A quick Google search lead me to this:
* Fixed CayenneForm duplicate insert bug. This issue was identified by
Bob Schellink [63]. (Version 0.19 - 8th April 2006)
Are you using at least version 0.19 of Click? I did look a
did you call context.createAndRegister() on the new objects?
-Ursprüngliche Nachricht-
Von: Jun Bondoy [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 21. Januar 2007 07:18
An: user@cayenne.apache.org
Betreff: Re: help on relationship
Hi Michael,
Thanks for the quick response..based on
Hi Michael,
Thanks for the quick response..based on your given code..this is what i did
with Click and Cayenne..luckily Click have a PropertySelect that supports
Cayenne to-one relationship..so what im trying to test now is the
to-many..the only option ive got is to do it manually...can you take
I meant to add that the set* methods are for to-one relationships and
the addTo* methods are for to-many relationships.
/dev/mrg
On 1/20/07, Michael Gentry <[EMAIL PROTECTED]> wrote:
When you model the relationships in Cayenne Modeler and then generate
the Java classes, it'll create set* metho
When you model the relationships in Cayenne Modeler and then generate
the Java classes, it'll create set* methods and addTo* methods for
your relationships.
So in your case, something similar to this should work:
Category category = [code to get your Category object];
Product product = dataConte
Hi list,
can somebody help me please. i have a products object with to-one
relationship with my categories object. what i want to do is create a new
products and use an existing categories object. below are the steps i did...
1. lookup for my existing categories via query
2. create a new product