[JIRA] Created: (CAY-682) Generic Cayenne POJO enhancer

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Tue Oct 10 2006 - 00:07:32 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-683) Deprecate DataContext.createAndRegisterNewObject()"

    Generic Cayenne POJO enhancer
    -----------------------------

             Key: CAY-682
             URL: http://issues.apache.org/cayenne/browse/CAY-682
         Project: Cayenne
            Type: Task

      Components: Cayenne Core Library
        Versions: 3.0
        Reporter: Andrus Adamchik
     Assigned to: Andrus Adamchik
         Fix For: 3.0

    JPA implies POJO persistence, so to hook up pojos to Cayenne we need an enhancer.

    However it looks like the enhancer itself doesn't have to know anything about JPA - it can be built on top of Cayenne. I prototyped an ASM-based enhancer [1] that turns a POJO into a Persistent instance and also does property interception. It is much cleaner and intuitive than our current CGLIB JPA enhancer, and (again) - it does not depend on anything JPA.

    The next steps I am going to take:
    * move it to Cayenne core,
    * create more tests
    * switch JPA to the new enhancer
    * add support for relationships interception

    So we will support POJO's without JPA! (and without spending any extra time in addition to what was planned for JPA work).

    [1] https://svn.apache.org/repos/asf/incubator/cayenne/sandbox/asm-enhancer/

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators:
       http://issues.apache.org/cayenne/secure/Administrators.jspa
    -
    For more information on JIRA, see:
       http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Tue Oct 10 2006 - 00:08:14 EDT