scan Entities in multi jars. #35

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
@hydra1983

Scan entities in multi jars when run hbm2ddl
A "basePackage" property must be set to search entities under the speicified package

<project default="build">
    <path id="toolslib">
        <fileset dir="toolslib">
            <include name="*.jar"/>
        </fileset>
        <pathelement path="D:\.opensource\hibernate-tools\git\target\hibernate-tools-3.6.0.CR1.jar"/> 
    </path>

    <taskdef name="hibernatetool"
        classname="org.hibernate.tool.ant.HibernateToolTask"
        classpathref="toolslib" />

    <target name="build">
        <hibernatetool destdir=".">
            <classpath>
                <path location="src"/>
            </classpath>
            <jpaconfiguration persistenceunit="default"
                propertyFile="toolslib/hibernate.properties" basePackage="com.wds.toolsuite"/>
            <hbm2ddl export="false" outputfilename="test-schema.sql"
                format="true" console="false"/>
        </hibernatetool>
    </target>
</project>
@maxandersen

This comment has been minimized.

Show comment
Hide comment
@maxandersen

maxandersen Dec 7, 2013

Member

sorry for not responding earlier but i'm not following what it is you are trying to here. Got an example of what is not working ?

Plus - the fix seem to change many other things (Formatting, dependencies,etc) that seems unrelated. Any chance you can rebase it and clean it up ?

Member

maxandersen commented Dec 7, 2013

sorry for not responding earlier but i'm not following what it is you are trying to here. Got an example of what is not working ?

Plus - the fix seem to change many other things (Formatting, dependencies,etc) that seems unrelated. Any chance you can rebase it and clean it up ?

@koentsje koentsje closed this Apr 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment