Dear me:
Got started on the Castor SQL binding docs. Pretty much followed the first two sections of the XML binding doc as a template. Now I'm stuck for a single good example, although I have a rather lame one that will work.
Spent considerable time on Saturday experimenting with hiding the Castor-genned classes (from an XML Schema source) behind a facade of objects inheriting from them. I'm not sure how viable the idea is, but two Castor features would be necessary to even try to make it work:
- null extension mappings (class extending another, but having no fields and using the same table as its base class mapping)
- the generation of interfaces from XML Schemas in addition to classes implementing them
Oh well... now I'll have to generate classes when the schema changes and hand merge them with changes already made to existing generated classes. Pain in the butt, but long term that's probably how it would end up, anyway.
Maybe a good beans editor could replace the XML Schema code generator so that I don't have to write those annoying accessor/mutator methods.
Ciao