cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [JIRA] Created: (CAY-682) Generic Cayenne POJO enhancer
Date Tue, 10 Oct 2006 04:07:32 GMT
Generic Cayenne POJO enhancer

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


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message