definite guide to configuring hibernate3

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

definite guide to configuring hibernate3

Amit Dor-Shifer
Hi.
Trying out a/m plugin, yet befuddled with the configuration. Is there some source explaining the XML for configuring this plugin?
e.g:
1. where can <configuration> appear?
2. What's <component> & <componentProperties>?
2. What are the possible configuration attributes of <hibernatetool>?

Much appreciated,
Amit
Reply | Threaded
Open this post in threaded view
|

Re: definite guide to configuring hibernate3

Amit Dor-Shifer
Nevermind. I got it working using the following configuration:

<!-- generate DDL (for reference/documentation) -->
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>hibernate3-maven-plugin</artifactId>
    <version>3.0</version>
    <!-- streamline DDL generation into the build -->
    <executions>
        <execution>
            <phase>process-classes</phase>
            <goals>
                <goal>hbm2ddl</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <hibernatetool>
            <jpaconfiguration />
            <hbm2ddl export="false" drop="true" outputfilename="drop-and-create.sql"
                format="true" />
        </hibernatetool>
    </configuration>
    <!-- out-of-the-box deps cannot process JPA 2.0 annotations -->
    <dependencies>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.6.10.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.6.10.Final</version>
        </dependency>
    </dependencies>
</plugin>

HTH,
Amit


On Thu, Nov 21, 2013 at 1:35 PM, Amit Dor-Shifer <[hidden email]> wrote:
Hi.
Trying out a/m plugin, yet befuddled with the configuration. Is there some source explaining the XML for configuring this plugin?
e.g:
1. where can <configuration> appear?
2. What's <component> & <componentProperties>?
2. What are the possible configuration attributes of <hibernatetool>?

Much appreciated,
Amit