-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Association management with extdirectspring #48
Comments
Hi Hello,
I guess this depends if the user can change the reference to entity1 in the
Associations is something I don't have any experience so far. That's the Ralph |
Thanks for your answer Ralph :) I understand that the only way to do this, is to search for entity2 using its primary key, and then update it with the new coming data. I wanted to let you know also that you do already have some code managing associations ! In your demo application, when the application asks for a list of users, the list of users is returned, with the list of roles granted to each user. So there is already some piece of code that knows about the relation between the entity user and the entity role. Omar |
I forgot about that. But I didn't use the association config. Guess I have Ralph |
ModelGenerator in version 1.2.3 (released today) can now generate code for association |
Hello,
I have a question about Model Associations and formUpdate. I have an entity1 that has many entity2. I have created a form for entity2, and I want to update entity2. Should I have a form with the value of the foreign key (value of the primary key of entity1), or would it be enough to transmit only the fields that really belon to entity2 ? Is there any need to set the associations in ExtJs (belongsTo, HasMany) ? These are not generated when I have tried the generator and the JPA Entities.
In general, how would you manage this kind of situation with extdirectspring ?
Thanks !
The text was updated successfully, but these errors were encountered: