Hi! As some other people on this list I had the problem to map with SourceGenerator generated classes with JDO to a database. Therefore I added a this new factory class to the SourceGenerator package. It is based upon FieldInfoFactoryJ2 it only uses an ArrayList instead of an array for the get and set methods and because of this the classes could be used (without changes) in a JDO mapping. Maybe it is useful for somebody else... While I was implementing this I met a minor problem(/misunderstanding of castor ?). It would be nice if the CollectionInfo uses internally only an ArrayList and makes get and set available with a Collection. ( Collection get() and set(Collection col) ) . In this case both java.util.ArrayList and java.util.Collection must be imported in the generated source code, but the a FieldInfo has ony one type (of course) and for my understanding no influence on the generated import statemens. Except that it's type will be imported. Is there a way doing this this without changing the SourceFactory (and FieldInfo) ?
Marc
FieldInfoFactoryMR.java
Description: Binary data
CollectionInfoMR.java
Description: Binary data
castor.properties
Description: Binary data
