Hi Johann,

I can't get <scan-classes/> to work.


Here's my configuration

<configuration>
    <goals>
        <goal>
            <name>hbm2ddl</name>
            <outputDirectory>target/hibernate3</outputDirectory>
            <implementation>annotationconfiguration</implementation>
        </goal>
    </goals>
    <configurationTaskProperties>

<configurationfile>/src/main/hibernate3/hibernate.cfg.xml</configurationfile>
        <ejb3>true</ejb3>
        <export>false</export>
        <scan-classes>true</scan-classes>

<namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</namingstrategy>
        <outputfilename>gggCreateTables.sql</outputfilename>
    </configurationTaskProperties>
</configuration>


Only when I explicitly add a class in hibernate.cfg.xml like this, that class gets a create table statement in the script:
<mapping class="ggg.GggType"/>

2) It's also a bit stranget that outputDirectory is configured in the goal and outputfilename in the configurationTaskProperties. Why not at the same place?

IMHO I am not 100% convinced that doing exactly like the ANT plugin and doing as much as possible with the configurationTaskProperties was a good thing :/

3) By default it tries to connect to the database, maybe the default should work offline instead as most will want to use it to generate their SQL scripts for the SysOps - and changing the database while trying to configure it correctly is scary.


Thanks for your work & continued help, please don't take my criticism badly :) Looking forward to some doc examples.

--
With kind regards,
Geoffrey De Smet

Johann Reyes wrote, On 2006-12-16 2:29 PM:
Hello Everyone

Just wanted to let you know that I deployed in the snapshot repository the 2.0-snapshot version of the plugin. So no more need to build from svn anymore. Again thanks to everyone that has help to bring the plugin to the stability that I was looking before releasing the new snapshot version.

Also, just finished adding initial support to annotationconfiguration for the properties <scan-jars/> and <scan-classes/> that would autodiscover annotated classes in the classpath or runtime dependencies and if I could some feedback about the doco that can be found here: http://hiberforum.org/hibernate3

I believe it’s almost done, if there is not any big issue in the following two weeks and the doco is up to respectable level, I guess we can finally push the long overdue release version of the plugin.

Thanks again to everyone for their help

Johann Reyes



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to