Announcement Announcement Module
No announcement yet.
automatic generation of bidirectional relationship handling methods Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • automatic generation of bidirectional relationship handling methods


    As described on this other thread:

    Some time ago I have created a Maven plug-in that is able to process entity classes to implement bidirectional relationship handling methods. It also generates collections proxies (only Set is supported so far) so this kind of relationship can be directly manipulated using only one of the sides (the other side is automatically updated) or even using iterators.

    If you think this is interesting, I am willing to contribute this work to Spring Data JPA, so more people can benefit from it. Let me know if you want more details about it (some more information can be found on that other thread).

    Constantino Cronemberger
    Last edited by ccronemberger; May 13th, 2013, 12:38 PM.

  • #2
    The relationship handling methods are all in a single class that is coded manually, then the Maven plug-in will just modify the relationship methods in all entity classes (using ASM - to call the static methods on that single class.