You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ca...@incubator.apache.org> on 2006/10/10 06:07:32 UTC

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

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


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

Posted by Andrus Adamchik <an...@objectstyle.org>.
The problem is that Java in general is running out of buzzwords, so I  
had to use an exclamation sign :-)

Andrus


On Oct 10, 2006, at 1:51 AM, Tore Halset wrote:
> On Oct 10, 2006, at 6:07, Andrus Adamchik (JIRA) wrote:
>
>> So we will support POJO's without JPA! (and without spending any  
>> extra time in addition to what was planned for JPA work).
>
> So we are getting more buzzword compatible :) Great work!
>
>  - Tore.
>


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

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Oct 10, 2006, at 6:07, Andrus Adamchik (JIRA) wrote:

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

So we are getting more buzzword compatible :) Great work!

  - Tore.