Hi Hee
Yes I thought about this code aPerson.project().txImplementation() and it's
great when I saved in data base but When I want to manipulate(modify each
row in the loop) txImplication before saved?
If the txImplication is not in the loop, I supposed you should be able to
modifiy each row, and also keep the value of txImplication either in your
session.txImplementation or as an attribute in the page java itself. Before
calling ec saveChanges, set the txImplication to your
aPerson.project().setTxImplication(session.txImplication()). Then ec
saveChanges to save all objects for persons and project. No?
I agree with you. My problem is not on save data but on manipulating
txImplication in the loop before saved them. I tought about
mutablearray(index,txImplication) with ted last night I'm working on it to see
how it look like in a loop.
index go to match to index in the loop and txImplication is an object that take
value for each index I want to edit.
I can not change the model because I exploit a database which I can modify.
I only create my table project to do relationship between all tables.
Since you chan create project table, and you may need to set up its
many-to-many relationship join table. It is common that a person can have
many projects and a project can have many persons. You will need to know how
to set up both relationships and get direct access with just e.g.
person.projects() and project.persons().
It's done but the relationship a little complicated. project have relation with
personnal and personnal have relation with individu. personal and project have
relation person which contains(project_id, personal_id and txImplication)
But in the model, person comes to individu entity.
Cheers
Ray
_______________________________________________
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]