> Another capability that I would like to see would be to limit > instrumentation to only fields which are defined in a Hibernate mapping. > Currently the instrument tasks do not know anything about the mappings, > so the first change to allow this would be facilitate the passing or > definition of a Configuration into the tasks. The tools already have > such a task used in their ant task stacks. So we would need to decide > whether it makes more sense to move the instrument tasks over to the > tools subproject, or to consume the <configuration/> sub task from tools > into core and make use of it from the instrument tasks.
The "easiest" thing codewise is to move the instruments task to hibernate-tools, since the sourrounding <hibernatetool> task is the actual Ant entry point and the <configuration/>, <ejb3configuration>, <annotationconfiguration>, etc. are defined in there. There is also the whole freemarker/templating setup dependency. ...thinking about it an alternative way could be to define a superclass for the current org.hibernate.tool.ant.HibernateToolTask that would just handle the core-built-in ant tasks. then users would have the same ant "API", but users would have to change their <hibernatetool> taskdef to use the "tool" provided tasks. Another context for this alignment/move is the talks we have had about allowing customization of schemaexport/update ...that would also be relevant to ensure it fits into this scheme. -- -- 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