[jira] Updated: (MPHIBERNATE-14) Support Hibernate 3.0

2005-04-29 Thread Anthony Vito (JIRA)
 [ http://jira.codehaus.org/browse/MPHIBERNATE-14?page=all ]

Anthony Vito updated MPHIBERNATE-14:


Attachment: version2and3comat.diff

This patch provides full seamless compatibility between both 2.x and 3.x 
versions of Hibernate. After this patch the plugin no longer has a hibernate 
dependency. The user of the plugin chooses the version that will be supported 
by placing the hibernate dependency in their project.xml file. The plugin 
detects the hibernate version and acts accordingly. It also fails imediately if 
hibernate is not found as a dependency. The one extra class I created, 
HibernateVersions, is a reflective bridge to detect the correct classes and 
deal with the minor API changes between the versions. After adjusting the 
dependencies of the "simpleTest" it passed fine. I also added a new test 
"simplev3Test", just a copy with everything updated to use version 3.0.1. It 
passes just fine also.(JTA is needed locally) The codeGeneration test always 
failed for me, even before I began working. I excluded it from the reactor in 
the plugin-test directory. I believe the codeGeneration in 2.X will work just 
fine. I think the test is not set up correctly. -Anthony Vito

> Support Hibernate 3.0
> -
>
>  Key: MPHIBERNATE-14
>  URL: http://jira.codehaus.org/browse/MPHIBERNATE-14
>  Project: maven-hibernate-plugin
> Type: Improvement
> Versions: 1.3
>  Environment: N/A
> Reporter: Mark Hobson
>  Attachments: hibernate3support.diff, version2and3comat.diff
>
>
> In Hibernate 3.0, currently alpha, the class structure has changed from 
> net.sf.hibernate to org.hibernate.  This means that when using this plugin 
> the user has to change the dialect class in hibernate.cfg.xml or 
> hibernate.properties before & after a hibernate:schema-export.
> To upgrade this plugin to support 3.0 is very straightforward - just change 
> the dependency, reorganise the imports & fix line 178 of SchemaBeanBase to 
> support the new API method Configuration.addJar(File).  There's also the 3.0 
> DTD's to add support for, but nothing major to get things working.
> Obviously these changes will break 2.1 users, so is it worth maintaining 
> parallel releases for both 2.1 and 3.0 Hibernate users?

-- 
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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Updated: (MPHIBERNATE-14) Support Hibernate 3.0

2005-03-30 Thread Dan Washusen (JIRA)
 [ http://jira.codehaus.org/browse/MPHIBERNATE-14?page=history ]

Dan Washusen updated MPHIBERNATE-14:


Attachment: hibernate3support.diff

I've modified the source to support hibernate 3.  
I had to remove the code generation part as there is no hibernate extensions 
jar available on ibiblio.  It's hasn't really been tested (other have the 
hibernate:schema-export goal).

The changes only took 30 minutes...

Cheers,
Dan

> Support Hibernate 3.0
> -
>
>  Key: MPHIBERNATE-14
>  URL: http://jira.codehaus.org/browse/MPHIBERNATE-14
>  Project: maven-hibernate-plugin
> Type: Improvement
> Versions: 1.3
>  Environment: N/A
> Reporter: Mark Hobson
>  Attachments: hibernate3support.diff
>
>
> In Hibernate 3.0, currently alpha, the class structure has changed from 
> net.sf.hibernate to org.hibernate.  This means that when using this plugin 
> the user has to change the dialect class in hibernate.cfg.xml or 
> hibernate.properties before & after a hibernate:schema-export.
> To upgrade this plugin to support 3.0 is very straightforward - just change 
> the dependency, reorganise the imports & fix line 178 of SchemaBeanBase to 
> support the new API method Configuration.addJar(File).  There's also the 3.0 
> DTD's to add support for, but nothing major to get things working.
> Obviously these changes will break 2.1 users, so is it worth maintaining 
> parallel releases for both 2.1 and 3.0 Hibernate users?

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]