using svn checkout as mentioned on http://www.jspresso.org/page/jspresso-download-area
I checked out 3.5-rc1 as of yesterday.
In an attempt to teach jspresso to use legacy tables I have ventured out and are trying to fix the sources.
What is the best way to integrate my own-build jspresso version into build of the helloworld application ?
If I add new parameters for the Entity, do I need to change the groovy generator or is it enough to add the new stuff to the class AbstractcomponentDescriptor.java ?
I would be interested in feedback to my current plan:
Add legacyTable and legacyPrimarykeysto entity properties:
Entity('T1', legacyTable:'T1_DBA', legacyPrimarykeys:['a','b']
)
{ String a
String b
String c
}
should generate:
Entity T1 with ID,VERSION,a,b,c
DB table T1_jspresso with columns( ID, VERSION, a,b) primary key(ID)
DB view T1 as select j.ID,j.VERSION,j.a,j.b,d.c from T1_jspresso j inner join T1_DBA d on j.a=d.a and j.b=d.b
DB triggers on view T1
- INSTEAD of INSERT,UPDATE,DELETE
DB foreign keys on T1_jspresso Referencing T1_DBA on (a,b)
- ON DELETE cascade
DB index on T1_jspresso columns (a,b)
Probably also need an option to populate the T1_jspresso table.
thanks for your help
Henrik
