cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: How to select reqired java classes which should be regenerate ?
Date Tue, 21 Jun 2011 18:25:15 GMT
I think regenerating all classes for a given DataMap is a good start. 

Tracing individual entity changes is a bit more tricky. We don't have existing code to detect
which entities need to be regenerated. One possible approach is to register a listener for
EntityEvents/AttributeEvents/RelationshipEvents and trace all entities involved, and then
use that list on save to figure out which classes need to be updated.


On Jun 21, 2011, at 8:33 PM, Eshan Sudharaka wrote:
> Hi ,
>  When we do some modifications cayenne-eclipse-editor (after save action
> performed) it should regenerate required java classes.(with out regenerating
> all java classes). For this matter i am referring CodeGeneratorController
> class and there what is does is run a full Java class  generation ( in
> generateAction ) . Now I am working on this.
> -- 
> *~Thanks & Regards~*
> ***
> *
> P.A.Eshan Sudharaka
> Dept of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka

View raw message