Hi Steve, Here is a list of the "tricks" I know about with respect to what I and Emmanuel do in JDBCMetaDataConfiguration and AnnotationConfiguration. What i mainly did were to check what methods we override and what was done in them (and in some cases not done)
Emmanuel please verify that i'm close to the truth regarding your usage of "tricks" :) JDBCMetaDataConfiguration: Overrides secondPassCompileForeignKeys(Table table, Set done) This is done to avoid creating foreignkeys in the metamdoel which is actually NOT in the database. OverridesparseMappingElement(Element subelement, String name) Done to be able to get all the settings without loading any mappings. Thus users can just say "use this set of hibernate configuration files" for reverse engineering and the existing mappings will be ignored. + I have my own SecondPass subclass for Collections (might add more in future) AnnotationConfiguration Overrides add(org.dom4j.Document doc) Done to detect if it is a hibernate-mapping or EJB3 entity-mappings document and do things accordingly. Overrides addInputStream(InputStream xmlInputStream) Done to configure XML schema parsing. Overrides reset() For additional bookkeeping reset Overrides secondPassCompile() To build up mappings (not sure if this one can handles multiple calls ? Emmanuel) Overrides setCollectionCacheConcurrencyStrategy(String collectionRole, String concurrencyStrategy, String region) To have its own cache info + Emmanuel have multiple custom secondpass subclasses /max -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel