On 2011-08-08, at 2:58 AM, <[email protected]> <[email protected]> wrote:
> Hi Chuck, > > > > here in attached three pics. > > pic0 is a little table personnel which contains relationship key Project > > and personneUlr as iID and tempsutil I call txImplication in my code. > > > > In EOF terms we would call that a Many to Many (M2M) join table. With an > extra attribute that makes things more complex, but still manageable. > > > > pic1 is pprec I call it project entity > > > > EOPprec should have a to many relationship to EOPersonnel, > ==>I agree with you but PowerAMC did another thing You can still put it in your model. That is what you should do. > I an not sure what to call this. "assigned people"? > ==>Yes assigned people. I created my table and relation from PowerAMC. It's > this software which create the sql code I used to generate my database. > The eoPersonnelUlr relationship looks wrong. Or it is poorly named. Is this > "owner" or manager? > ==>manager > > > pic2 is personneUlr I call it person Entity > > EOPersonnelUlr should also have a to many relationship to EOPersonnel, I an > not sure what to call this. "projects"? > ==> yes projects > > Then you create a new EOPersonnel, attach it to EOPprec and EOPersonnelUlr > (addObjectToBothSidesOfRelationshipWithKey). This object is then what gets > edited in your grid, not session.getTxImplication(). > > Before editing the new EOPersonnel in grid. I must his data. Before saving > his data I must have them. So I create variables to have data I would like to > save in EOPersonnel > > I hope you understand me You can also create and insert the objects. If they are not used, then delete them before saving. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
