[ http://jira.codehaus.org/browse/MHIBERNATE-1?page=comments#action_61692 ] 

Sylvain Vieujot commented on MHIBERNATE-1:
------------------------------------------

To configure the plugin, add the following to your pom.xml in the build/plugins 
section :

                        <plugin>
                                <groupId>com.seanergie.maven.plugins</groupId>
                                <artifactId>hibernate-annotations</artifactId>
                                <version>1.0-SNAPSHOT</version>
                                <executions>
                                        <execution>
                                                <phase>compile</phase>
                                                <goals>
                                                        
<goal>mappings-compile</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>

                        <plugin>
                                <groupId>com.seanergie.maven.plugins</groupId>
                                <artifactId>hibernate-annotations</artifactId>
                                <version>1.0-SNAPSHOT</version>
                                <executions>
                                        <execution>
                                                <phase>test-compile</phase>
                                                <goals>
                                                        
<goal>mappings-test</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>

> Hibernate 3 Annotations support
> -------------------------------
>
>          Key: MHIBERNATE-1
>          URL: http://jira.codehaus.org/browse/MHIBERNATE-1
>      Project: Maven 2.x Hibernate Plugin
>         Type: New Feature

>     Reporter: Sylvain Vieujot
>  Attachments: mavenHibernateAnnotationsPlugin.tar.gz
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> As the current Hibernate mojo doesn't support the Annotations, I did a new 
> plugin that search for the annotated @Entity and include a corresponding 
> <mapping class="..."/> in the hibernate.cfg.xml.
> I attach the source code.
> It's quite simple, but with the com.seanergie package name.
> If this can be contributed to the project, I can work to make it a little 
> cleaner and with the right package name.
> In your hibernate.cfg.xml you should include the following tag where you want 
> the mappings to be inserted :
> <!-- Include Mapping classes here -->

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to