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

  • automatic generation of bidirectional relationship handling methods

    Hi,

    As described on this other thread:

    http://forum.springsource.org/showth...s-in-Hibernate

    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).

    Regards,
    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 - http://asm.ow2.org/) to call the static methods on that single class.

    Comment

    Working...
    X